Browse Source

Adding volume for pihole in the wrong place

Breandan Dezendorf 2 years ago
parent
commit
5dd235fe6a
1 changed files with 3 additions and 4 deletions
  1. 3 4
      homelab/k3s/pihole/pihole.yaml

+ 3 - 4
homelab/k3s/pihole/pihole.yaml

@@ -33,6 +33,9 @@ spec:
         - name: piholednsmasq
         - name: piholednsmasq
           persistentVolumeClaim:
           persistentVolumeClaim:
             claimName: piholednsmasq
             claimName: piholednsmasq
+        - name: "pihole-custom-list"
+          configMap:
+            name: "pihole-custom-list"
       containers:
       containers:
         - name: pihole
         - name: pihole
           image: 'pihole/pihole:latest'
           image: 'pihole/pihole:latest'
@@ -56,10 +59,6 @@ spec:
             - name: "pihole-custom-list"
             - name: "pihole-custom-list"
               mountPath: "/etc/pihole/custom.list"
               mountPath: "/etc/pihole/custom.list"
               subPath: "custom.list"
               subPath: "custom.list"
-      volumes:
-        - name: "pihole-custom-list"
-          configMap:
-            name: "pihole-custom-list"
       affinity:
       affinity:
         podAntiAffinity:
         podAntiAffinity:
           preferredDuringSchedulingIgnoredDuringExecution:
           preferredDuringSchedulingIgnoredDuringExecution: