
PowerProtect Data Manager 19.18 Kubernetes User Guide
Deploy application templates
You can deploy application templates from customized source YAML files or from the default YAML files.
Prerequisites
Obtain and deploy the CLI package. If required, copy and customize a source YAML file for the appropriate database environment.
Even where the default templates contain actions for cluster instances of supported databases, the default deployment command creates a template for a single-instance database. For supported cluster databases, use the --inputfile parameter to specify a YAML file. This YAML file can be one of the examples.
About this task
This task uses the following placeholders:
- template-type is one of the following values: mysqltemplate, mongodbtemplate, postgrestemplate, or cassandratemplate
- db-type is one of the following values: mysql, mongodb, postgresql, or cassandra
- user-namespace is a specific namespace
- file is the name of a customized YAML file, where applicable
Steps
- Log in to the Kubernetes cluster.
-
To deploy a default application template for a specific namespace, type the following command:
ppdmctl applicationtemplate create template-type --type=db-type --namespace=user-namespace
For example:
-
To deploy a default MySQL application template for a specific namespace, type the following command:
ppdmctl applicationtemplate create mysqltemplate --type=mysql --namespace=user-namespace
-
To deploy a default MySQL application template for the PowerProtect namespace, which applies to all namespaces, type the following command:
ppdmctl applicationtemplate create mysqltemplate --type=mysql --namespace=powerprotect
-
To deploy a default MySQL application template for a specific namespace, type the following command:
-
To deploy an application template from a customized YAML file, type the following command:
ppdmctl applicationtemplate create template-type --type=db-type --namespace=user-namespace --inputfile=file.yaml
-
To list the application templates for a specific namespace, type the following command:
kubectl get applicationtemplate --namespace=user-namespace
-
To edit an application template in a specific namespace, type one of the following commands:
kubectl edit applicationtemplate template-type --namespace=user-namespace
For example:
kubectl edit applicationtemplate mysqltemplate --namespace=powerprotect