Templates
#
IntroductionThe 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 templatesTo 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 parametersTo 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 parametersTo 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 requestTo 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 credentialsTo get a list of infrastructure credentials for a given CAPITemplate
run:
This command returns the list of all infrastructure credentials.