From 11b4966b90d003219f677259f57dfec948993eb9 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Tue, 6 Jul 2021 05:16:19 -0700 Subject: [PATCH] GKE sslip.io DNS: 1 replica, no readiness We only have 1 node (because I'm frugal), so we really need only one replica (it's more likely that the node has crashed rather than my fairly-simple server). Also, I pushed out the liveness probe to 5 minutes so the logs aren't cluttered with probes every ten seconds. I got rid of the readiness probe, which is only for "[applications [that] are temporarily unable to serve traffic](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)". It cluttered the logs with its probes. Also my app is never temporarily unable to serve. fixes too many occurrences of: ``` ::1.55268 TypeA 127.0.0.1.sslip.io. ? 127.0.0.1 ``` --- k8s/sslip.io.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/k8s/sslip.io.yml b/k8s/sslip.io.yml index 7a941dc..2383a5d 100644 --- a/k8s/sslip.io.yml +++ b/k8s/sslip.io.yml @@ -4,7 +4,7 @@ kind: Deployment metadata: name: sslip.io spec: - replicas: 2 + replicas: 1 selector: matchLabels: app: sslip.io-dns @@ -30,14 +30,7 @@ spec: - "@localhost" - 127.0.0.1.sslip.io - +short - periodSeconds: 3600 - readinessProbe: - exec: - command: - - dig - - "@localhost" - - 127.0.0.1.sslip.io - - +short + periodSeconds: 300 --- apiVersion: v1 kind: Service