问题原文
原帖链接 · uav · CC BY-SA 4.0
I want to build my own Kubernetes cluster across two locations (300 km distance) and integrate it into GitLab.
Let me list my ideas. My question is if I have a mistake in my thinking somewhere and ask to solve it.
Since I can only set up VMs and have no rights directly on the hosts, I want to install an etcd-cluster on 5 VMs (3+2). I would install etcd with apt on Ubuntu 18.04. For this I don't need Kubernetes at first.
An odd number of instances only applies to etcd and not to control planes?
Does it make any sense to set up separate VMs for the control planes or can I reuse the 3+2 VMs of the etcd cluster? Otherwise I would already have 10 VMs.
已采纳解答
原帖链接 · c4f4t0r · CC BY-SA 4.0
Unless you have a big kubernetes cluster with thousand of services and many nodes, you can setup a separated etcd cluster and remember if you want to setup the etcd cluster in two locations, check the coreos documentation, because etcd is very sensitive to latency
If you choose to use an external etcd cluster, you don't need an odd number for the control planes, you only need an odd number with etcd, because etcd machines are in cluster.
Control planes doesn't communicate between them, only with etcd
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
