From 98578c1fd4828a508e64e5a54a844142580b0f54 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 7 Jan 2022 23:05:12 +0330 Subject: update --- kubernetes/squid/squid-proxy-deployment.yaml | 36 +++++++++++++--------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'kubernetes/squid/squid-proxy-deployment.yaml') diff --git a/kubernetes/squid/squid-proxy-deployment.yaml b/kubernetes/squid/squid-proxy-deployment.yaml index 1ef2c40..1fa2c4c 100644 --- a/kubernetes/squid/squid-proxy-deployment.yaml +++ b/kubernetes/squid/squid-proxy-deployment.yaml @@ -2,12 +2,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: squid - lables: + labels: app: squid spec: replicas: 1 - selctor: - matchlabels: + selector: + matchLabels: app: squid template: metadata: @@ -16,21 +16,17 @@ spec: spec: containers: - name: squid - image: bloodstalker/squid:apline-5.0 + image: b4tman/squid:5.2 ports: - - containerPort: 80 - env: - - name: TZ - valueFrom: - configMapKeyRef: - name: squid-configmap - key: pihole_tz + - containerPort: 80 + volumeMounts: + - name: squid-conf + mountPath: /etc/squid/squid.conf + readOnly: true volumes: - - name: squid-config-volume - valueFrom: - configMapKeyRef: - name: k3s-rpi-configmap - key: squid_config_vol + - name: squid-conf + configMap: + name: squid-config-file --- apiVersion: v1 kind: Service @@ -39,13 +35,15 @@ metadata: spec: selector: app: squid - type: LoadBalancer + type: NodePort ports: - protocol: UDP port: 80 targetPort: 80 - nodePort: 80 + nodePort: 30880 + name: "squid-udp-80" - protocol: TCP port: 80 targetPort: 80 - nodePort: 80 + nodePort: 30880 + name: "squid-tcp-80" -- cgit v1.2.3