diff options
author | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
commit | 6e528248414e330c9e25e81596ab47b8b8a5b701 (patch) | |
tree | e1aa41a7f3198eeac187e6177ec7d4a33db229d3 /rpi/pihole-deployment.yaml | |
download | scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip |
first commitmaster
Diffstat (limited to 'rpi/pihole-deployment.yaml')
-rw-r--r-- | rpi/pihole-deployment.yaml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/rpi/pihole-deployment.yaml b/rpi/pihole-deployment.yaml new file mode 100644 index 0000000..49e44fe --- /dev/null +++ b/rpi/pihole-deployment.yaml @@ -0,0 +1,65 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pihole + lables: + app: pihole +spec: + replicas: 1 + selctor: + matchlabels: + app: pihole + template: + metadata: + labels: + app: pihole + spec: + containers: + - name: pihole + image: pihole/pihole + ports: + - containerPort: 53 + - containerPort: 67 + - containerPort: 80 + - containerPort: 443 + env: + - name: TZ + valueFrom: + configMapKeyRef: + name: k3s-rpi-configmap + key: pihole_tz + - name: WEBPASSWORD + valueFrom: + secretKeyRef: + name: k3s-rpi-secrets + key: pihole-webpassword +--- +apiVersion: v1 +kind: Service +metadata: + name: pihole-service +spec: + selector: + app: pihole + type: LoadBalancer + ports: + - protocol: TCP + port: 53 + targetPort: 53 + nodePort: 53 + - protocol: UDP + port: 53 + targetPort: 53 + nodePort: 53 + - protocol: UDP + port: 67 + targetPort: 67 + nodePort: 67 + - protocol: TCP + port: 80 + targetPort: 80 + nodePort: 80 + - protocol: TCP + port: 443 + targetPort: 443 + nodePort: 443 |