Open pdhamdhere opened 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.
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
Etcd and apiserver are created by kubeadm hence moving to kubeadm should resolve this issue. Refer :- https://kubernetes.io/docs/getting-started-guides/kubeadm/
Tracking #327