From c203dbd7a4fd282ccf68bab0c2e5cd3cf5d8d22f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 9 Jan 2022 22:06:51 +0330 Subject: updates for more images. they seem to work fine now.seem... --- kubernetes/ntp/Dockerfile | 2 ++ kubernetes/pihole/pihole-deployment.yaml | 2 +- kubernetes/squid/squid-proxy-deployment.yaml | 3 ++- kubernetes/unbound/unbound-deployment.yaml | 16 +++++++++++----- 4 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 kubernetes/ntp/Dockerfile (limited to 'kubernetes') diff --git a/kubernetes/ntp/Dockerfile b/kubernetes/ntp/Dockerfile new file mode 100644 index 0000000..5e4f0dc --- /dev/null +++ b/kubernetes/ntp/Dockerfile @@ -0,0 +1,2 @@ +FROM alpine:3.15 +apk add --no-cache && apk add --no-cache openntpd diff --git a/kubernetes/pihole/pihole-deployment.yaml b/kubernetes/pihole/pihole-deployment.yaml index cd04227..8e5ac39 100644 --- a/kubernetes/pihole/pihole-deployment.yaml +++ b/kubernetes/pihole/pihole-deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: pihole - image: pihole/pihole + image: pihole/pihole:2022.01.1 ports: - containerPort: 53 - containerPort: 67 diff --git a/kubernetes/squid/squid-proxy-deployment.yaml b/kubernetes/squid/squid-proxy-deployment.yaml index 1fa2c4c..3c6f5c5 100644 --- a/kubernetes/squid/squid-proxy-deployment.yaml +++ b/kubernetes/squid/squid-proxy-deployment.yaml @@ -16,13 +16,14 @@ spec: spec: containers: - name: squid - image: b4tman/squid:5.2 + image: ubuntu/squid:4.10-20.04_beta ports: - containerPort: 80 volumeMounts: - name: squid-conf mountPath: /etc/squid/squid.conf readOnly: true + subPath: squid.conf volumes: - name: squid-conf configMap: diff --git a/kubernetes/unbound/unbound-deployment.yaml b/kubernetes/unbound/unbound-deployment.yaml index 26f8997..1831e09 100644 --- a/kubernetes/unbound/unbound-deployment.yaml +++ b/kubernetes/unbound/unbound-deployment.yaml @@ -2,12 +2,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: unbound - lables: + labels: app: unbound spec: replicas: 1 - selctor: - matchlabels: + selector: + matchLabels: app: unbound template: metadata: @@ -27,9 +27,15 @@ metadata: spec: selector: app: unbound - type: LoadBalancer + type: NodePort ports: - protocol: UDP port: 53 + name: "unbound-udp-53" + targetPort: 53 + nodePort: 30853 + - protocol: TCP + port: 53 + name: "unbound-tcp-53" targetPort: 53 - nodePort: 53 + nodePort: 30853 -- cgit v1.2.3