Export a Cluster Template from a Cluster Created in the UI
A guide on how to export a cluster template from a cluster created in the UI.
This guide shows you how to export a cluster template from a cluster created in the UI. This is useful when you want to switch a cluster from being manually managed to being managed by cluster templates (i.e. via the CLI, to be used in CI automation).
Exporting the Cluster Template
To export a cluster, run the following command:
It will export the template for the cluster with name my-cluster
into the file my-cluster-exported-template.yaml
.
If you inspect the exported template, you will see an output like the following:
Using the Exported Cluster Template to Manage the Cluster
You can now use this template to manage the cluster - edit the template as needed and sync it using the CLI:
Check the sync status: