Deploying CP4BA Automated Upgrade container
Use the Helm chart to deploy the CP4BA Automated Upgrade container on
OpenShift® or
Kubernetes.
Before you begin
Make sure that the following prerequisites are met before you begin.
- Download
cert-kubernetesto update the catalog sources for the new release.- Open the Cloud Pak for Business Automation
download
document
click Cert Kubernetes, and then select and copy the displayed command. - Run the copied
git clonecommand to download the files.
- Open the Cloud Pak for Business Automation
download
document
- CLI tools.
The container does not include
kubectlorocCLI tools. You need to download a compatible version and upload it to the container by using the/uploadendpoint.The CLI must be compatible with RHEL 9.7 (UBI9 base image) and the CLI version must match your cluster version.
To download OpenShift CLI (oc):- Select the OpenShift
version that you want to download. For more information, see OpenShift mirror
. The minimum supported version is 4.18. - Run the following command to download the
tool.
curl -LO https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz tar -xzf openshift-client-linux.tar.gz ocFor example, run the following command to download version 4.18.curl -LO https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.18/openshift-client-linux.tar.gz tar -xzf openshift-client-linux.tar.gz oc
To download Kubernetes CLI (
kubectl), go to Install and Set Up kubectl on Linux
.For example, run the following command to download RHEL 9.curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - Select the OpenShift
version that you want to download. For more information, see OpenShift mirror
- Install Helm 3.x. For more information, see Installing Helm
. - You must have cluster administrator access to deploy the container.
- POSIX-compliant storage class or Persistent Volume Claim (PVC) created with POSIX-compliant storage.
About this task
The
CP4BA Automated Upgrade container is deployed by using a Helm chart that is
stored in the cert-kubernetes repository. You can specify a
StorageClass or reference an existing Persistent Volume Claim (PVC) in the Helm
chart. You can also configure access to the API by using any one of the following options or both.- Kubernetes secret that contains a username and password. The API uses these credentials for authentication.
- Kubernetes secret that contains the TLS files (
tls.keyandtls.pem). The API uses these certificates for TLS verification.
The Helm chart includes configurable parameters that you can modify based on your requirements. For more information, see CP4BA Automated Upgrade Helm chart parameters.
Important: You need to deploy the
CP4BA Automated Upgrade container on
the Cloud Pak for Business Automation
cluster where the deployment version you want to upgrade is running.You configure the following parameters in the
values.yaml file located in
cert-kubernetes/descriptors/CP4BA/helm-charts/cp4ba-api/values.yaml.serviceAccount.operandNamespace- The namespace in which the CP4BA operands run.serviceAccount.operatorNamespace- The namespace where the CP4BA operators run. If the namespace is the same as the operands namespace, then enter "".route.hostname- The route hostname. The route hostname must match the TLS certificate.persistence.storageClass- The storage class name. It must supportReadWriteManyaccess mode.auth.username- The username for HTTP Basic Authentication. This parameter is used only whenauth.createSecret=true. The default value forauth.createSecretisfalse. If you setauth.createSecret=true, then the chart creates the secret automatically by using the values fromauth.usernameandauth.password. In a production environment, it is recommended to create the username manually.auth.password- The password for HTTP Basic Authentication. This parameter is used only whenauth.createSecret=true. The default value forauth.createSecretisfalse. If you setauth.createSecret=true, then the chart creates the password automatically. In a production environment, it is recommended to create the password manually.