Created
October 7, 2021 04:43
-
-
Save uthark/1fbf0f93ff8eed075e0bf6901ffef1ed to your computer and use it in GitHub Desktop.
Pi Hole Static Pod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pihole | |
# namespace: pihole | |
spec: | |
hostNetwork: true | |
dnsPolicy: "None" | |
dnsConfig: | |
nameservers: | |
- 1.1.1.1 | |
containers: | |
- name: pihole | |
image: pihole/pihole:2021.10 | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: TZ | |
value: "America/Los_Angeles" | |
- name: WEBPASSWORD | |
value: <CUSTOMIZE> | |
securityContext: | |
privileged: true | |
ports: | |
- containerPort: 53 | |
protocol: TCP | |
- containerPort: 53 | |
protocol: UDP | |
- containerPort: 67 | |
protocol: UDP | |
- containerPort: 80 | |
protocol: TCP | |
- containerPort: 443 | |
protocol: TCP | |
volumeMounts: | |
- name: etc | |
mountPath: /etc/pihole | |
- name: dnsmasq | |
mountPath: /etc/dnsmasq.d | |
resources: | |
requests: | |
memory: 128Mi | |
cpu: 100m | |
limits: | |
memory: 2Gi | |
cpu: 1 | |
volumes: | |
- name: etc | |
hostPath: | |
path: /data/pihole/etc | |
type: Directory | |
- name: dnsmasq | |
hostPath: | |
path: /data/pihole/dnsmasq.d | |
type: Directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment