`examples/k8s-health-check` folder README advises against readiness probes for (to me) incomprehensible reasons
メンテナーはふだん 1 日以内に返信
@hessjcg がすでに取り組んでいます。
2024年8月27日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- Go
- スター
- 1.4k
- フォーク
- 356
- 平均マージ
- 14時間 48分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/cloud-sql-proxy のほかの issue
-
Regression: --quiet disables --structured-logs again対応中かも @Firehed が 2 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
GoogleCloudPlatform/cloud-sql-proxy#2693 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
GoogleCloudPlatform/cloud-sql-proxy#2680 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
GoogleCloudPlatform/cloud-sql-proxy#2672 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GoogleCloudPlatform/cloud-sql-proxy#2671 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
GoogleCloudPlatform/cloud-sql-proxy#2670 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
GoogleCloudPlatform/cloud-sql-proxy の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
prime-radiant-inc/evener#4223 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-telemetry/opentelemetry-go-compile-instrumentation#1467 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
yetone/magpie#1490 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
modelcontextprotocol/go-sdk#1367 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信