Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Creating an etcd cluster with hostNetwork: true? #1929

Open
aanm opened this issue Feb 19, 2018 · 3 comments · Fixed by form3tech-oss/etcd-operator#1 · May be fixed by #2094
Open

Creating an etcd cluster with hostNetwork: true? #1929

aanm opened this issue Feb 19, 2018 · 3 comments · Fixed by form3tech-oss/etcd-operator#1 · May be fixed by #2094

Comments

@aanm
Copy link

aanm commented Feb 19, 2018

I've noticed EtcdCluster doesn't contain any option to set up the pod network of the etcd pods that are created by etcd-operator. Is it possible to set up an etcd cluster with the pods running hostNetwork: true? If yes, how?

@hongchaodeng
Copy link
Member

No. It is not possible as now.
What's your use case for hostNetwork?

@aanm
Copy link
Author

aanm commented Feb 19, 2018

@hongchaodeng thanks for the reply!

Most of the CNI network plugins in kubernetes rely in a KV store to set up all pods running in non-hostNetwork.

We (cilium/cilium#2441) were planing to use etcd-operators + etcd to deploy 3 etcd pods in a kubernetes cluster using hostNetwork. This would allow our users to deploy Cilium in an easy way, without requiring them to use the kubernetes etcd cluster (which is not recommended) nor set up a dedicated etcd cluster outside of kubernetes.

The etcd-operator would start each etcd node using hostNetwork and once they were set up, Cilium could connect to the dedicated etcd cluster.

@hongchaodeng
Copy link
Member

@aanm Could you submit a prototype PR?

rajatjindal added a commit to rajatjindal/etcd-operator that referenced this issue Jun 12, 2019
this allows the network plugins like CNI to use etcd-cluster
as kv when bootstrapping the cluster

fixes coreos#1929
rajatjindal added a commit to rajatjindal/etcd-operator that referenced this issue Jun 14, 2019
this allows the network plugins like CNI to use etcd-cluster
as kv when bootstrapping the cluster

fixes coreos#1929
bmcustodio pushed a commit to form3tech-oss/etcd-operator that referenced this issue Jun 29, 2020
this allows the network plugins like CNI to use etcd-cluster
as kv when bootstrapping the cluster

fixes coreos#1929
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants