-
Notifications
You must be signed in to change notification settings - Fork 5
liveness probe to check message processing #848
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
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 |
|---|---|---|
|
|
@@ -62,11 +62,15 @@ spec: | |
| periodSeconds: 15 | ||
| timeoutSeconds: 5 | ||
| livenessProbe: | ||
| tcpSocket: | ||
| port: client | ||
| initialDelaySeconds: 30 | ||
| exec: | ||
| command: | ||
| - /bin/sh | ||
| - -c | ||
| - timeout 10 /opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 | ||
| initialDelaySeconds: 60 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| timeoutSeconds: 15 | ||
| failureThreshold: 3 | ||
|
Comment on lines
+70
to
+73
|
||
| lifecycle: | ||
| preStop: | ||
| exec: | ||
|
|
||
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.
The
exec.commandlist items are indented at the same level ascommand:, which makes the YAML invalid (the sequence must be nested under thecommandkey). Adjust indentation so the- /bin/sh,- -c, and the actual command are children ofcommand:.