Creating Pods with MySQL and Commvault Docker Containers

Updated

Configure the YAML files to create the pods with the MySQL and the Commvault Docker containers.

Procedure

  1. Create the following MySQL configuration files on the master node of Kubernetes cluster:

    • The commcell_secret.yaml file has the Command Center user name and password.

    • The cv-configmap.yaml file has CommServe information such as host name, client name and IP address.

    • The mysql-configmap.yaml file has MySQL configuration information such as MySQL database name, username and password.

    • The mysql-services.yaml file has the port number to be used by the MySQL server.

    • The mysql-statefulset.yaml file has the image and volume information needed for creating the pod.

      Note:

      • Create the mysql-statefulset.yaml file only after all the other files are created.

      • Give the Docker containers names that will cause them to be automatically added to the smart server group.

  2. Run the following command from the Kubernetes cluster for each YAML file:

    kubectl create -f file_name

    Important: Apply the mysql-statefulset.yaml file only after all the other files are applied.

Result

  • Based on the number of replicas in the mysql-statefulset.yaml file example given above, the same number of pods are created, and the client appears in the server group. Each pod contains both the Commvault Docker container and the MySQL Docker container.

  • The number of clients registered to the CommCell are same as the number of pods created. Data protection operations are run from the individual clients considering them as standalone clients.

What to Do Next

Verify that the server group is ready to perform backups and restores. For more information, see Checking Readiness.