aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/squid/squid-proxy-deployment.yaml
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-18 14:40:41 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-18 14:40:41 +0000
commitc43133af81f5a15ce85a8722a881debab9a32316 (patch)
tree111b3e7080cd45d465bd40e87c0b720c30ea9293 /kubernetes/squid/squid-proxy-deployment.yaml
parentmoved bitlbee to kubernetes. using bitlbee-libpurple now (diff)
downloadscripts-c43133af81f5a15ce85a8722a881debab9a32316.tar.gz
scripts-c43133af81f5a15ce85a8722a881debab9a32316.zip
kubernetes updates
Diffstat (limited to 'kubernetes/squid/squid-proxy-deployment.yaml')
-rw-r--r--kubernetes/squid/squid-proxy-deployment.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/kubernetes/squid/squid-proxy-deployment.yaml b/kubernetes/squid/squid-proxy-deployment.yaml
new file mode 100644
index 0000000..1ef2c40
--- /dev/null
+++ b/kubernetes/squid/squid-proxy-deployment.yaml
@@ -0,0 +1,51 @@
+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: squid-configmap
+ key: pihole_tz
+ 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