mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 09:24:24 -05:00
57 lines
1.9 KiB
Markdown
57 lines
1.9 KiB
Markdown
|
# Scale your cluster
|
||
|
|
||
|
Constellation provides all features of a Kubernetes cluster including scaling and autoscaling.
|
||
|
|
||
|
## Worker node scaling
|
||
|
|
||
|
[During cluster initialization](create.md#init) you can choose to deploy the [cluster autoscaler](https://github.com/kubernetes/autoscaler). It automatically provisions additional worker nodes so that all pods have a place to run.
|
||
|
|
||
|
Alternatively, you can choose to manually scale your cluster:
|
||
|
|
||
|
<tabs>
|
||
|
<tabItem value="azure" label="Azure" default>
|
||
|
|
||
|
1. Find your Constellation resource group.
|
||
|
2. Select the `scale-set-workers`.
|
||
|
3. Go to **settings** and **scaling**.
|
||
|
4. Set the new **instance count** and **save**.
|
||
|
|
||
|
</tabItem>
|
||
|
<tabItem value="gcp" label="GCP" default>
|
||
|
|
||
|
1. In Compute Engine go to [Instance Groups](https://console.cloud.google.com/compute/instanceGroups/).
|
||
|
2. **Edit** the **worker** instance group.
|
||
|
3. Set the new **number of instances** and **save**.
|
||
|
|
||
|
</tabItem>
|
||
|
</tabs>
|
||
|
|
||
|
This works for scaling your worker nodes up and down.
|
||
|
|
||
|
## Control-plane node scaling
|
||
|
|
||
|
Control-plane nodes can **only be scaled manually and only scaled up**!
|
||
|
|
||
|
To increase the number of control-plane nodes, follow these steps:
|
||
|
|
||
|
<tabs>
|
||
|
|
||
|
<tabItem value="azure" label="Azure" default>
|
||
|
|
||
|
1. Find your Constellation resource group.
|
||
|
2. Select the `scale-set-controlplanes`.
|
||
|
3. Go to **settings** and **scaling**.
|
||
|
4. Set the new (increased) **instance count** and **save**.
|
||
|
|
||
|
</tabItem>
|
||
|
<tabItem value="gcp" label="GCP" default>
|
||
|
|
||
|
1. In Compute Engine go to [Instance Groups](https://console.cloud.google.com/compute/instanceGroups/).
|
||
|
2. **Edit** the **control-plane** instance group.
|
||
|
3. Set the new (increased) **number of instances** and **save**.
|
||
|
|
||
|
</tabItem>
|
||
|
</tabs>
|
||
|
|
||
|
If you scale down the number of control-planes nodes, the removed nodes won't be able to exit the `etcd` cluster correctly. This will endanger the quorum that's required to run a stable Kubernetes control plane.
|