-
Notifications
You must be signed in to change notification settings - Fork 148
change restore pod readinessProbe to 9980 #1509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -120,8 +120,10 @@ ${COMPUTED_ENV_VARS} | |||||||||||||||||
| memory: 600Mi | ||||||||||||||||||
| cpu: 300m | ||||||||||||||||||
| readinessProbe: | ||||||||||||||||||
| tcpSocket: | ||||||||||||||||||
| port: 2380 | ||||||||||||||||||
| httpGet: | ||||||||||||||||||
| port: 9980 | ||||||||||||||||||
| path: readyz | ||||||||||||||||||
| scheme: HTTPS | ||||||||||||||||||
|
Comment on lines
+123
to
+126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ Verification inconclusiveVerify HTTP probe path format: "readyz" should be "/readyz". Same issue as in the companion file: Kubernetes HTTPGet probes expect paths to begin with a forward slash. Correct the path to "/readyz" for compliance with the Probe API specification. Proposed fix: httpGet:
port: 9980
- path: readyz
+ path: /readyz
scheme: HTTPSVerify HTTP probe path format: "readyz" should be "/readyz". Kubernetes HTTPGet probes access a path on the HTTP server, with "/" as the default. The kubelet sends an HTTP request to the specified port and path to perform the check. All official Kubernetes examples use leading slashes in paths, such as Proposed fix: httpGet:
port: 9980
- path: readyz
+ path: /readyz
scheme: HTTPS📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| failureThreshold: 3 | ||||||||||||||||||
| initialDelaySeconds: 3 | ||||||||||||||||||
| periodSeconds: 5 | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify HTTP probe path format: "readyz" should be "/readyz".
Kubernetes HTTPGet probes expect paths to begin with a forward slash. The path should be specified as "/readyz" rather than "readyz" to comply with the Probe API specification and ensure reliable probe execution.
Proposed fix:
httpGet: port: 9980 - path: readyz + path: /readyz scheme: HTTPS🌐 Web query:
💡 Result:
Short answer
Details / sources
If you want, I can show examples and edge cases (query strings, virtual-hosting via Host header, or HTTPS scheme).
Sources:
[1] Kubernetes docs — Configure Liveness/Readiness/Startup probes.
[2] Kubernetes HTTPGetAction API reference.
</shell_scripts>
🏁 Script executed:
Length of output: 6185
Fix HTTPGet probe paths to use absolute paths across all affected files.
Kubernetes best practice requires httpGet probe paths to begin with "/" (absolute path). The default value is "/" and the probe is sent to podIP:port. Update the following files:
bindata/etcd/quorum-restore-pod.yamlline 69:path: readyz→path: /readyzbindata/etcd/pod.gotpl.yamlline 233:path: readyz→path: /readyzbindata/etcd/pod.gotpl.yamlline 242:path: healthz→path: /healthzbindata/etcd/pod.gotpl.yamlline 253:path: readyz→path: /readyzbindata/etcd/restore-pod.yamlline 125:path: readyz→path: /readyz🤖 Prompt for AI Agents