Skip to content
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

*: use kubecsr mount, add readiness probe to etcd pod #2

Merged

Conversation

alaypatel07
Copy link

This PR changes the etcd pod manifests to use kube-client-agent mount subcommand. It also adds readiness probe to etcd static pod. This should help make endpoints more reflective of state of pods consumed by CEO.

Depends on coreos/kubecsr#30

- name: kubeconfig
mountPath: /etc/kubernetes/kubeconfig
- name: sa
mountPath: /var/run/secrets/kubernetes.io/serviceaccount/
containers:
- name: etcd-member
image: "{{.Images.etcdKey}}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we need etcd-metrics as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not critical for the workflow, once we learn from playing with etcd-member, we can patch the etcd-metrics with readiness probe upstream

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that endpoints controller will see that port 2380 registered on etcd-member is not ready because it has not passed readiness probe and it will not add this pod ip to the ready ip addresses list, irrespective of the state of the etcd-metrics.

@hexfusion hexfusion merged commit 8f44b8f into hexfusion:4.3-cluster-etcd-operator Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants