summaryrefslogtreecommitdiff
path: root/f3s/pihole/helm-chart/templates
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-07 22:25:47 +0200
committerPaul Buetow <paul@buetow.org>2026-02-07 22:25:47 +0200
commitf204a7c80c04fabef7aaf130c2154c0655f6e2f1 (patch)
tree7bbbed62c60540cd3a037ccbb6361c7303235fe8 /f3s/pihole/helm-chart/templates
parent743963fb948a6a80e1db5991d02c05e4d9334c05 (diff)
add pihole
Diffstat (limited to 'f3s/pihole/helm-chart/templates')
-rw-r--r--f3s/pihole/helm-chart/templates/ingress.yaml46
-rw-r--r--f3s/pihole/helm-chart/templates/persistent-volumes.yaml55
2 files changed, 101 insertions, 0 deletions
diff --git a/f3s/pihole/helm-chart/templates/ingress.yaml b/f3s/pihole/helm-chart/templates/ingress.yaml
new file mode 100644
index 0000000..20dfc25
--- /dev/null
+++ b/f3s/pihole/helm-chart/templates/ingress.yaml
@@ -0,0 +1,46 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: pihole-ingress
+ namespace: services
+ annotations:
+ spec.ingressClassName: traefik
+ traefik.ingress.kubernetes.io/router.entrypoints: web
+spec:
+ rules:
+ - host: pihole.f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: pihole-web
+ port:
+ number: 80
+---
+# LAN Ingress for pihole.f3s.lan.buetow.org with TLS
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: pihole-ingress-lan
+ namespace: services
+ annotations:
+ spec.ingressClassName: traefik
+ traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
+spec:
+ tls:
+ - hosts:
+ - pihole.f3s.lan.buetow.org
+ secretName: f3s-lan-tls
+ rules:
+ - host: pihole.f3s.lan.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: pihole-web
+ port:
+ number: 80
diff --git a/f3s/pihole/helm-chart/templates/persistent-volumes.yaml b/f3s/pihole/helm-chart/templates/persistent-volumes.yaml
new file mode 100644
index 0000000..2ad4c9c
--- /dev/null
+++ b/f3s/pihole/helm-chart/templates/persistent-volumes.yaml
@@ -0,0 +1,55 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: pihole-config-pv
+spec:
+ capacity:
+ storage: 1Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/pihole/config
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: pihole-config-pvc
+ namespace: services
+spec:
+ storageClassName: ""
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: pihole-dnsmasq-pv
+spec:
+ capacity:
+ storage: 1Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/pihole/dnsmasq
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: pihole-dnsmasq-pvc
+ namespace: services
+spec:
+ storageClassName: ""
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi