Cluster API Add-on Provider for Verrazzano extends the functionality of Cluster API by providing a solution for managing the installation, configuration, upgrade and deletion of Verrazzano on managed/workload clusters.
Ensure there are two clusters at a minimum
- Admin cluster running the CAPI controllers.
- Workload cluster created with CAPI.
Refer to the development guide to build images and setup the addon provider on your cluster
Once the addon is deployed , we can now deploy verrazzzano on the workload cluster as follows.
Create a VerrazzanoFleet
resource on the admin cluster.
kubectl apply -f - <<EOF
apiVersion: addons.cluster.x-k8s.io/v1alpha1
kind: VerrazzanoFleet
metadata:
name: example-fleet-1
namespace: default
spec:
clusterSelector:
name: kluster1
verrazzano:
spec:
profile: dev
EOF
The above Resource will create a dev
profile based Verrazzano installation on the workload cluster.
To cleanup Verrazzano installations from the remote cluster, just delete the VerrazzanoFleet
resource.
kubectl delete verrazzanofleet example-fleet-1