`examples/k8s-health-check` folder README advises against readiness probes for (to me) incomprehensible reasons
@hessjcg ci sta già lavorando.
Dal 27/8/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
The examples/k8s-health-check folder's README.md says:
For most common usage, adding a readiness healthcheck to the proxy sidecar container is unnecessary. An improperly configured readiness check can degrade the application's availability. [...] Most applications are resilient to transient database connection failures, and do not need to be restarted. [...] You should use the proxy container's readiness probe when these circumstances should cause k8s to terminate the entire pod: [...]
That makes it sound as if a failing readiness probe would cause the Pod to be restarted and we shouldn't use them for the cloud-sql-proxy sidecar for that reason, but this doesn't seem to be the case (?)
Instead, if I understood k8s's docs correctly, a failing readiness probe will not cause a Pod to be restarted, and readiness probes are only important for two things:
- Directing traffic to a Pod - only ready Pods will receive traffic.
- Determining whether a Pod in a Deployment is considered "available" in the context of the
RollingUpdatestrategy.
And for (2), it seems to me like having an accurate readiness probe is in fact essential, because otherwise the rolling update will consider pods "available" that are really broken, which then causes k8s to stop healthy but outdated Pods to make room for them.
So I don't understand this piece of advice.
Does it just confuse the readiness probe with the liveness probe (maybe because that was introduced later? But then again, the document does mention the liveness probe, too...)?
Potential Solution
Fix the README so it accurately reflects what a readiness probe is for and how it's relevant, or, if it turns out I'm wrong, link to the paragraphs in the k8s docs where my misconceptions are corrected from README.md so other users don't develop the same ones in the future.
Additional Details
There are similar comments in the examples/k8s-health-check/proxy_with_http_health_check.yaml file, which should be corrected as well if it turns out that there is something to correct here.
- Lingua principale
- Go
- Stelle
- 1.4k
- Fork
- 352
- Merge medio
- 2h 5m
- PR unite (30g)
- 3
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GoogleCloudPlatform/cloud-sql-proxy
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
GoogleCloudPlatform/cloud-sql-proxy#2672 · 1 commento ·
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GoogleCloudPlatform/cloud-sql-proxy#2671 · 1 commento ·
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
GoogleCloudPlatform/cloud-sql-proxy#2670 · 1 commento ·
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GoogleCloudPlatform/cloud-sql-proxy#2669 · 1 commento ·
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
GoogleCloudPlatform/cloud-sql-proxy#2668 · 1 commento ·
Tutte le issue di GoogleCloudPlatform/cloud-sql-proxy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug group: validation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
codecheckers/chekhov#51 ·
-
Creating worktree from an existing remote branch with a slash in it, has unexpected behaviour Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100