Creating Pods with PostgreSQL and Commvault Docker Containers


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


  1. Create the following PostgreSQL configuration files on the master node of the 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 the host name, client name, and IP address.

    • The postgres-configmap.yaml file has PostgreSQL configuration information such as the 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.


      • 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 have been applied.


  • 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 environment is the 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.