Creating Pods with PostgreSQL and Commvault Docker Containers

Updated

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

Procedure

  1. Create the following PostgreSQL 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 postgres-configmap.yaml file has PostgreSQL configuration information such as PostgreSQL database name, username, and password.

    • The postgres-service.yaml file has the port number to be used by the PostgreSQL server.

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

      Note:

      • Create the pgsql-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 pgsql-statefulset.yaml file only after all the other files are applied.

Result

  • Based on the number of replicas in the 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 PostgreSQL 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.