add pihole

This commit is contained in:
TapTap committed 2026-10-20 16:22:39 +02:00
1 parent 4753f2ca04
commit a95c777bc6
6 files changed
+113

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
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