Skip to content

Commit ab5090d

Browse files
committed
Adding docs for CKS cluster autoscaling
1 parent be8cb1b commit ab5090d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/plugins/cloudstack-kubernetes-service.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,26 @@ Only running Kubernetes clusters can be scaled in size. When the service fails t
254254

255255
Note: Only up scaling is supported while scaling clusters for service offering.
256256

257+
Auto-Scaling Kubernetes cluster
258+
###############################
259+
260+
CloudStack has been officially added to the list of Kubernetes supported `Cloud Provides
261+
<https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler#deployment>`_
262+
This allows Kubernetes to dynamically scale the size of the cluster based on the capacity requirements.
263+
Details on how the cluster-autoscaler works can be found on the official `Kubernetes cluster autoscaler repository
264+
<https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md>`_
265+
266+
From 4.16, CloudStack supports automated deployment of the cluster autoscaler for Kubernetes Cluster versions 1.15.0 and higher.
267+
The autoscaler runs as a `cluster-autoscaler` service on the kubernetes cluster consisting of one pod which determines the capacity needs of the cluster.
268+
269+
In order for the autoscaler to communicate with CloudStack, a separate service user **kubeadmin** is created in the same account as the cluster owner.
270+
The autoscaler uses this user's API keys to get the details of the cluster as well as dynamically scale it. It is imperative that this user
271+
is not altered or have its keys regenerated.
272+
273+
The cluster-autoscaler can still be manually deployed on older versions of CloudStack for supported Kubernetes versions.
274+
The guide to manually deploying the cluster autoscaler can be found `here
275+
<https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/cloudstack/README.md>`_
276+
257277
Upgrading Kubernetes cluster
258278
#############################
259279

0 commit comments

Comments
 (0)