Templates
Introduction#
The MCCP CLI allows listing and rendering of CAPITemplate resources, viewing
of template parameters, viewing of infrastructure credentials and submission of
pull requests for creating Kubernetes clusters using the terminal. Currently,
the CAPA (AWS) and CAPD (Docker) providers are supported.
Listing templates#
To get a list of CAPITemplate resources run:
This command returns a list of all available CAPITemplate resources that have
been added previously to the management cluster. In the following example, only
a single template is returned named cluster-template-eks-fargate.
Listing template parameters#
To get a list of parameters for a given CAPITemplate run:
This command returns a list of all template parameters for a given template. These parameters need to be set in order to render a template or create a pull request for a new CAPI cluster. In the following example, four template parameters are shown.
Rendering a template with parameters#
To set the parameters for a template and render it run:
This command uses the parameters supplied to output the CAPI manifest to the terminal.
Creating a pull request#
To create a pull request for a new Kubernetes cluster using a template run:
This command returns a message that includes the URL for the new pull request.
Listing template infrastructure credentials#
To get a list of infrastructure credentials for a given CAPITemplate run:
This command returns the list of all infrastructure credentials.