mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-07 08:31:02 +08:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user