aboutsummaryrefslogtreecommitdiffstats
path: root/rpi/squid-proxy-deployment.yaml
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /rpi/squid-proxy-deployment.yaml
downloadscripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz
scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip
first commitmaster
Diffstat (limited to 'rpi/squid-proxy-deployment.yaml')
-rw-r--r--rpi/squid-proxy-deployment.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/rpi/squid-proxy-deployment.yaml b/rpi/squid-proxy-deployment.yaml
new file mode 100644
index 0000000..70ec65e
--- /dev/null
+++ b/rpi/squid-proxy-deployment.yaml
@@ -0,0 +1,56 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: squid
+ lables:
+ app: squid
+spec:
+ replicas: 1
+ selctor:
+ matchlabels:
+ app: squid
+ template:
+ metadata:
+ labels:
+ app: squid
+ spec:
+ containers:
+ - name: squid
+ image: bloodstalker/squid:apline-5.0
+ ports:
+ - containerPort: 80
+ env:
+ - name: TZ
+ valueFrom:
+ configMapKeyRef:
+ name: k3s-rpi-configmap
+ key: pihole_tz
+ - name: WEBPASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: k3s-rpi-secrets
+ key: pihole-webpassword
+ volumes:
+ - name: squid-config-volume
+ valueFrom:
+ configMapKeyRef:
+ name: k3s-rpi-configmap
+ key: squid_config_vol
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: squid-service
+spec:
+ selector:
+ app: squid
+ type: LoadBalancer
+ ports:
+ - protocol: UDP
+ port: 80
+ targetPort: 80
+ nodePort: 80
+ - protocol: TCP
+ port: 80
+ targetPort: 80
+ nodePort: 80