-
Overview
-
Practical sheets
-
-
-
-
-
-
-
- Backup : Agent-Level B&R via NSS for IAAS offer
- Backup : Create VCOD Backup
- Backup : Netbackup Agent Installation for Linux
- Backup : Netbackup Agent Installation for Windows
- Backup : Overall Design for VCOD Offer
- Backup : User's Guide for VCOD Offer
- NSX-T : Configuring a Distributed Firewall [FR]
- NSX-T : Create a VPN Ipsec
- NSX-T : Creation of T1
- NSX-T : DNAT configuration
- NSX-T : How to configure a Gateway Firewall
- NSX-T : SNAT configuration
- NSX-T: Create and Configure a Geneve Overlay Segment [FR]
- NSX-T: How to configure an IPSEC solution
- vCenter : Clone a VM [FR]
- VCenter : Create a new VM
- VCenter : Create a snapshot of a VM
- VCenter : Reset cloudadmin password
- VCenter : Storage Vmotion on a VM
- VCenter : Upgrade Vmware tools on a VM
- Show all articles (5) Collapse Articles
-
-
Q & A
-
Services
- Backup
- Bare metal server
- Block Storage [FR]
- BVPN access
- Certifications [FR]
- Cross Connect [FR]
- Dedicated Cluster
- DRaaS with VCDA
- Dual Site [FR]
- HA Dual-Room
- Internet access
- Kubernetes [FR]
- Licenses
- LoadBalancer As A Service
- Network
- Network Storage
- Object storage
- QoS Appliance
- Security
- Support and Coaching
- Tools [FR]
- VCenter On Demand
- VM Replication [FR]
- Show all articles (8) Collapse Articles
KaaS Standard – scale workload cluster
Introduction
When cluster are running out of resources we can differentiate two types of scaling :
- Scale up
- Scale out
Scale up consist of adding cpu or memory on each node but we keep the same number of nodes
Scale out consist to add new nodes with the same resources as existing nodes.
Depending of your needs you can choose to go with a scale up approach or scale out, or why not both.
How to scale up a cluster
Using clusterctl and templates files
Please note !
To be able to scale using this way, you should have access to the template files that was used to create the cluster.
To scale up a cluster you just have to modify the VCD_CONTROL_PLANE_SIZING_POLICY or VCD_WORKER_SIZING_POLICY parameter in the ***-.yml file depending of your needs.
Then apply the template using this command :
ytt -f capi-template/ -f values.yml | kubectl apply -f -
The change of this parameter is not automatically detected by the system, which is why it is necessary, in addition to scaling out to add nodes with the new sizing, and then reducing the number of nodes to force the removal of nodes with the old sizing.
Direct modification with no code
If you don’t want to make the modification directly without any code you can edit the object directly the objects.
To scale the control plane
Launch the command below by replacing [clusterName] by the cluster name to scale.
kubectl edit VCDMachineTemplate [clusterName]-control-plane
Change the sizingPolicy parameter corresponding to the new sizingPolicy to use and save the file.
After that it is required to scale-out the cluster by adding new nodes and then reduce the number of nodes to delete old nodes which use old compute policy.
To scale the workers
Launch the command below by replacing [clusterName] by the cluster name to scale.
kubectl edit VCDMachineTemplate [clusterName]-md0
Change the sizingPolicy parameter corresponding to the new sizingPolicyto use and save the file.
After that it is required to scale-out the cluster by adding new nodes and then reduce the number of nodes to delete old nodes which use old compute policy.
How to scale out a cluster
Using clusterctl and templates files
Please note !
To be able to scale using this way, you should have access to the template files that was used to create the cluster.
To scale up a cluster you just have to modify the CONTROL_PLANE_MACHINE_COUNT or WORKER_MACHINE_COUNT parameter in the ***-config.yml file depending of your needs.
Then apply the template using this command :
clusterctl generate cluster cluster1 --config cluster1-config.yaml -f v1.22.9-crs > cluster1.yaml
kubectl apply -f cluster1.yaml
Kubernetes will detect the change and will deploy new nodes.
Direct modification with no code
If you don’t want to make the modification directly without any code you can edit the object directly the objects.
To scale the control plane
Launch the command below by replacing [clusterName] by the cluster name to scale.
kubectl edit VCDMachineTemplate [clusterName]-control-plane
Change the replicas parameter corresponding to the number of node you want to have
To scale the workers
Launch the command below by replacing [clusterName] by the cluster name to scale.
kubectl edit VCDMachineTemplate [clusterName]-md0
Change the replicas parameter corresponding to the number of node you want to have.