diff --git a/manifests/pihole/install.yaml b/manifests/pihole/install.yaml new file mode 100644 index 0000000..98a0e4a --- /dev/null +++ b/manifests/pihole/install.yaml @@ -0,0 +1,81 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: pihole-longhorn-volv-pvc +spec: + accessModes: + - ReadWriteMany + storageClassName: longhorn + resources: + requests: + storage: 0.5Gi + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: pihole + name: pihole +spec: + replicas: 1 + selector: + matchLabels: + app: pihole + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: pihole + spec: + containers: + - image: pihole/pihole:latest + name: pihole + ports: + - containerPort: 80 + - containerPort: 53 + resources: {} + env: + - name: TZ + value: "America/New_York" + - name: WEBPASSWORD + value: "initial" + #volumeMounts: + #- name: etc-dir + #mountPath: /etc + #volumes: + #- name: etc-dir + #persistentVolumeClaim: + #claimName: pihole-longhorn-volv-pvc +status: {} + +--- +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + app: pihole + name: pihole-svc +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: 80 + - name: dns-tcp + port: 53 + protocol: TCP + targetPort: 53 + - name: dns-udp + port: 53 + protocol: UDP + targetPort: 53 + selector: + app: pihole + type: LoadBalancer +status: + loadBalancer: {}