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
```
This commit is contained in:
Brian Cunnie
2021-07-06 05:16:19 -07:00
parent 59c9423989
commit 11b4966b90

View File

@@ -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