vmware-archive / kubernetes-archived

This repository is archived. Please file in-tree vSphere Cloud Provider issues at https://github.com/kubernetes/kubernetes/issues . CSI Driver for vSphere is available at https://github.com/kubernetes/cloud-provider-vsphere
Apache License 2.0
46 stars 31 forks source link

Etcd starts after kubernetes apiserver starts #98

Open pdhamdhere opened 7 years ago

pdhamdhere commented 7 years ago

Tracking #327

abrarshivani commented 7 years ago

In kubernetes-anywhere apiserver and etcd starts as a static pod. Currently, there is no way to add dependency into static pod. One way to resolve this is using systemd services. Other can be moving to kubeadm (not sure). This seems to be not a critical issue since apiserver is restarted once it fails. Yet, we need to confirm this by looking at how many times apiserver restarts. Also, we need to check whether this issue is resolved once we move to kubeadm.

abrarshivani commented 7 years ago

Kubelets restarts the container in the pod if it fails if restartpolicy is 'Always'(default value). Hence, apiserver will be restarted always until it gets status as running.

Refer :- https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#example-states

abrarshivani commented 7 years ago

Etcd and apiserver are created by kubeadm hence moving to kubeadm should resolve this issue. Refer :- https://kubernetes.io/docs/getting-started-guides/kubeadm/