mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-07 16:41:19 +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:
|
metadata:
|
||||||
name: sslip.io
|
name: sslip.io
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: sslip.io-dns
|
app: sslip.io-dns
|
||||||
@@ -30,14 +30,7 @@ spec:
|
|||||||
- "@localhost"
|
- "@localhost"
|
||||||
- 127.0.0.1.sslip.io
|
- 127.0.0.1.sslip.io
|
||||||
- +short
|
- +short
|
||||||
periodSeconds: 3600
|
periodSeconds: 300
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- dig
|
|
||||||
- "@localhost"
|
|
||||||
- 127.0.0.1.sslip.io
|
|
||||||
- +short
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
Reference in New Issue
Block a user