--- apiVersion: apps/v1 kind: Deployment metadata: name: pihole-1 spec: selector: matchLabels: app: pihole-1 replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: pihole-1 spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/arch operator: In values: - arm64 containers: - name: pihole-1 image: pihole/pihole:2021.10.1 env: - name: ServerIP value: "192.168.20.83" - name: PUID value: "1000" - name: PGID value: "1000" - name: TZ value: "America/Toronto" - name: WEBPASSWORD valueFrom: secretKeyRef: name: pihole-1-pass key: WEBPASSWORD ports: - containerPort: 53 name: "pihole-53tcp" - containerPort: 53 name: "pihole-53udp" protocol: UDP - containerPort: 80 name: "pihole-80" volumeMounts: - name: pihole-1-etc-pihole mountPath: "/etc/pihole" - name: pihole-1-etc-dnsmasq-d mountPath: "/etc/dnsmasq.d" volumes: - name: pihole-1-etc-pihole persistentVolumeClaim: claimName: pihole-1-etc-pihole-pvc - name: pihole-1-etc-dnsmasq-d persistentVolumeClaim: claimName: pihole-1-etc-dnsmasq-d-pvc # EOF