{"id":422,"date":"2021-12-22T11:09:48","date_gmt":"2021-12-22T10:09:48","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=422"},"modified":"2021-12-22T13:15:57","modified_gmt":"2021-12-22T12:15:57","slug":"pihole-pour-dhcp","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2021\/12\/22\/pihole-pour-dhcp\/","title":{"rendered":"Pihole pour dhcp"},"content":{"rendered":"\n<p>pour utilise le dhcp de pihole il faut le port 67 et 547 pour ipv6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: pihole-dns-dhcp-service\r\n  namespace: pihole-ns  \r\nspec:\r\n  selector:\r\n    app: pihole\r\n  ports:\r\n    - name: dhcp\n      protocol: UDP\r\n      port: 67\r\n      targetPort: 67\n    - name: dhcpv6\n      protocol: UDP\n      port: 547\n      targetPort: 547\n    - name: dns\n      protocol: UDP\n      port: 53\n      targetPort: 53\n  type: LoadBalancer<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/github.com\/MoJo2600\/pihole-kubernetes\/issues\/18\">https:\/\/github.com\/MoJo2600\/pihole-kubernetes\/issues\/18<\/a><\/p>\n\n\n\n<p>pour que le pod pihole puisse fonctionner sur le LAn et pas sur le reseau interne kubernetes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: apps\/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: piholeserver \r\n  namespace: pihole-ns\n  labels:\r\n    app: pihole\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      app: pihole\r\n  template:\r\n    metadata:\r\n      labels:\r\n        run: piholeserver \r\n        app: pihole\r\n    spec:\r\n      containers:\r\n      - name: piholeserver \r\n        image: pihole\/pihole:latest\n\r        hostNetwork: true\n        securityContext.privileged: true\n        env:\r\n          - name: \"DNS1\"\r\n            value: \"9.9.9.9\"\r\n          - name: \"DNS2\"\r\n            value: \"149.112.112.112\"\r\n        volumeMounts:\r\n        - mountPath: \/etc\/pihole\/\r\n          name: pihole-config\r\n        - mountPath: \/etc\/dnsmasq.d\/\r\n          name: pihole-dnsmasq\r\n      volumes:\r\n      - name: pihole-config\r\n        hostPath:\r\n          type: DirectoryOrCreate\r\n          path: \/usr\/kubedata\/piholeserver\/pihole\r\n      - name: pihole-dnsmasq\r\n        hostPath:\r\n          type: DirectoryOrCreate\r\n          path: \/usr\/kubedata\/piholeserver\/dnsmasq.d<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pour utilise le dhcp de pihole il faut le port 67 et 547 pour ipv6 https:\/\/github.com\/MoJo2600\/pihole-kubernetes\/issues\/18 pour que le pod pihole puisse fonctionner sur le LAn et pas sur le reseau interne kubernetes<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[65,33,50],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-dhcp","tag-kubernetes","tag-pihole"],"jetpack_publicize_connections":[],"featured_image_src":null,"author_info":{"display_name":"admin9483","author_link":"https:\/\/daisy-street.fr\/index.php\/author\/admin9483\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":5,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/422\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}