-
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 – Bootstrap cluster deletion
Introduction
In order to reduce the number of clusters used, it is possible to transfer Cluster API objects (Cluster, MachineDeployment, etc.) from one management cluster to another.
This allows for the movement of Cluster API objects currently located in the bootstrap cluster to your management cluster.
As a result, you will have only one management cluster that will handle both your work clusters and itself.
Prerequisites
Before proceeding with the procedure, you must ensure that:
- The target management cluster is properly installed and functional.
- No scaling or update operations are currently in progress.
- The versions must be identical on both the source and target clusters, whether it’s the Cluster API version and the Provider CAPVCD version.
- Provider VCD version:
kubectl get pod -n capvcd-system -l cluster.x-k8s.io/provider=infrastructure-vcd -o=jsonpath='{range .items[*]}{.status.containerStatuses[0].image}{"\r\n"}{end}'
- Cluster API provider version:
kubectl get pod -n capi-system -l cluster.x-k8s.io/provider=cluster-api -o=jsonpath='{range .items[*]}{.status.containerStatuses[0].image}{"\r\n"}{end}'
- Provider VCD version:
Please note !
Please be aware that this method is only intended for separating from the bootstrap cluster and should not be used for any other purpose.
For additional information, you can refer to the official Cluster API procedure: HERE
Cluster move
Firstly please connect to the bootstrap cluster:
You can verify your connection to the bootstrap cluster by running the command kubectl get nodes
.
Additionally, if you run the command kubectl get cluster
, you should see your management cluster. This is one of the objects that will be moved.
#kubectl get nodes
NAME STATUS ROLES AGE VERSION
mstr-3no2 Ready control-plane,master 28m v1.22.9+vmware.1
node-c4jq Ready <none> 25m v1.22.9+vmware.1
#kubectl get cluster
NAME PHASE AGE VERSION
mgt02 Provisioned 19m
The CAPVCD provider uses a secret (capi-user-credentials
) located in the default namespace, which is not migrated by the clusterctl command.
Therefore, we will copy this secret to the destination cluster.
Please modify the DST variable to point to the kubeconfig file of the destination management cluster.
DST=/chemin/vers/kubeconfigDestination
kubectl get secret capi-user-credentials -o yaml | kubectl apply --kubeconfig=${DST} -f -
Locate the kubeconfig file for connecting to your management cluster (destination cluster), and then run the following command:
clusterctl move --to-kubeconfig=/path/to/target/kubeconfig
clusterctl move --to-kubeconfig=${DST}
After running this command, you should no longer have any Cluster objects on your bootstrap cluster.
However, you should see the Cluster object corresponding to your management cluster on your management cluster.