apiVersion: apps/v1 kind: Deployment metadata: name: pihole-deployment namespace: pihole labels: app: pihole spec: replicas: 1 selector: matchLabels: app: pihole template: metadata: labels: app: pihole spec: containers: - name: pihole image: pihole/pihole:2025.07.1 ports: - containerPort: 80 protocol: TCP - containerPort: 53 protocol: UDP - containerPort: 53 protocol: TCP envFrom: - configMapRef: name: pihole-configmap volumeMounts: - name: pihole-volume mountPath: /etc/pihole - name: dnsmasq-volume mountPath: /etc/dnsmasq.d volumes: - name: pihole-volume hostPath: path: /root/kubernetes/pihole/data/pihole - name: dnsmasq-volume hostPath: path: /root/kubernetes/pihole/data/dnsmasq.d