Skip to content

Removing predefined templates

Remove Templates shipped with k0rdent#

If you need to limit the templates that exist in your k0rdent installation, follow the instructions below:

  1. Get the list of ProviderTemplate, ClusterTemplate or ServiceTemplate objects shipped with k0rdent. For example, for ClusterTemplate objects, run:

    kubectl get clustertemplates -n kcm-system -l helm.toolkit.fluxcd.io/name=kcm-templates
    
    NAMESPACE    NAME                            VALID
    kcm-system   adopted-cluster-1-1-1           true
    kcm-system   aws-eks-1-0-2                   true
    kcm-system   aws-hosted-cp-1-0-8             true
    kcm-system   aws-standalone-cp-1-0-9         true
    kcm-system   azure-aks-1-0-1                 true
    kcm-system   azure-hosted-cp-1-0-7           true
    kcm-system   azure-standalone-cp-1-0-7       true
    kcm-system   openstack-standalone-cp-1-0-8   true
    kcm-system   vsphere-hosted-cp-1-0-7         true
    kcm-system   vsphere-standalone-cp-1-0-8     true
    
  2. Remove the template from the list using kubectl delete, as in:

    kubectl delete clustertemplate -n kcm-system <template-name>