usecase for etcd inside Kubernetes

11/16/2017

I was just wondering, why it is useful to run etcd cluster inside Kubernetes, when Kubernetes itself depends on etcd.

It just does not make sense to me, as if I have HA Kube, I am also forced to have HA etcd outside. Hence to reason to install it again inside...

-- malejpavouk
etcd
kubernetes

2 Answers

11/21/2017

I have an external ETCD that manages my k8s HA cluster and im not letting any developer apps near it. I would be too concerned about something going wrong and breaking the k8s cluster. It is also a fixed size at 3 which works well for the cluster size with its requirements. If the developers need a key/value store for their db and want etcd, this would be a great way to make one in the cluster for the applications. With it being statefulsets, its scalable.

-- JamStar
Source: StackOverflow

1/23/2018

If you're using Kubernetes via GKE, the underlying Etcd cluster is not exposed in any way.

-- Adam Lassek
Source: StackOverflow