Note: Chinese documentation please refer here.
tencentcloud-cloud-controller-manager
is the Kubernetes cloud controller manager implementation for Tencent Cloud Container Service. Read more about cloud controller managers here.
WARNING: this project is a work in progress and may not be production ready. Currently, only Kubernetes 1.10.x is supported.
Currently tencentcloud-cloud-controller-manager
implements:
- nodecontroller - updates nodes with cloud provider specific labels and addresses.
- routecontroller - responsible for creating routes in vpc
- servicecontroller - responsible for creating LoadBalancers when a service of
Type: LoadBalancer
is created in Kubernetes.
At the current state of Kubernetes, running cloud controller manager requires a few things. Please read through the requirements carefully as they are critical to running cloud controller manager on a Kubernetes cluster on Tencent Cloud.
All kubelet
s in your cluster MUST set the flag --cloud-provider=external
. kube-apiserver
and kube-controller-manager
must NOT set the flag --cloud-provider
which will default them to use no cloud provider natively.
WARNING: setting --cloud-provider=external
will taint all nodes in a cluster with node.cloudprovider.kubernetes.io/uninitialized
, it is the responsibility of cloud controller managers to untaint those nodes once it has finished initializing them. This means that most pods will be left unscheduable until the cloud controller manager is running.
In the future, --cloud-provider=external
will be the default. Learn more about the future of cloud providers in Kubernetes here.
By default, the kubelet will name nodes based on the node's hostname. On TencentCloud Container Service, node hostnames are set based on the private ipv4 ip of the instance. If you decide to override the hostname on kubelets with --hostname-override, this will also override the node name in Kubernetes. It is important that the node name on Kubernetes matches private ipv4 ip of the instance, otherwise cloud controller manager cannot find the corresponding instance to nodes.