-
Notifications
You must be signed in to change notification settings - Fork 894
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
ci: etcd using the /livez for LivenessProbe and /readyz for StartupProbe. #5438
base: master
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 |
---|---|---|
|
@@ -35,17 +35,35 @@ spec: | |
- name: etcd | ||
image: registry.k8s.io/etcd:3.5.13-0 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- -ec | ||
- 'etcdctl get /registry --prefix --keys-only --endpoints https://127.0.0.1:2379 --cacert /etc/karmada/pki/etcd-ca.crt --cert /etc/karmada/pki/etcd-server.crt --key /etc/karmada/pki/etcd-server.key' | ||
startupProbe: | ||
failureThreshold: 24 | ||
httpGet: | ||
host: 127.0.0.1 | ||
path: /readyz | ||
port: 2381 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 15 | ||
readinessProbe: | ||
failureThreshold: 3 | ||
initialDelaySeconds: 600 | ||
periodSeconds: 60 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
httpGet: | ||
host: 127.0.0.1 | ||
path: /readyz | ||
port: 2381 | ||
scheme: HTTP | ||
periodSeconds: 1 | ||
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. Is once per second too frequent? 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. This is the expected effect of etcd readyz API design, see https://docs.google.com/document/d/1PaUAp76j1X92h3jZF47m32oVlR8Y-p-arB5XOB7Nb6U/edit |
||
timeoutSeconds: 15 | ||
Comment on lines
+55
to
+56
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. this is from kubeadm |
||
livenessProbe: | ||
failureThreshold: 8 | ||
httpGet: | ||
host: 127.0.0.1 | ||
path: /livez | ||
port: 2381 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
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. The |
||
periodSeconds: 10 | ||
timeoutSeconds: 15 | ||
ports: | ||
- containerPort: 2379 | ||
name: client | ||
|
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 port should be 2379, as our
listen-client-urls
is set tohttps://0.0.0.0:2379
.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.
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.
kubeadm have the arg of
--listen-metrics-urls=http://127.0.0.1:2381
, so this is 2381, and karmada have not set it.