Upgrading DevOps Loop
After you complete certain backup and pre-upgrade steps, you can upgrade DevOps Loop to a newer version using Helm.
Before you begin
You must have completed the following tasks:
- Performed a backup of DevOps Loop. For detailed steps, see Backup and restoration of DevOps Loop.
- Ensured that you have access to the Kubernetes cluster and Helm CLI.
- Verified that the Helm chart repository is reachable from the environment.
Procedure
-
Run the following commands to set environment variables for the upgrade:
HELM_NAME=devops-loop NAMESPACE=devops-loop VERSION=2.0.000 -
Run the following command to initialize the additional Helm options:
export ADDITIONAL_HELM_OPTIONS="--set option1=value1 --set option2=value2" -
Run the following command to retrieve the existing Helm values:
helm get values ${HELM_NAME} --namespace ${NAMESPACE} > user_input_values.yaml -
Retrieve the existing Helm values again to verify the configuration by running
the following command:
ADDITIONAL_HELM_OPTIONS=${ADDITIONAL_HELM_OPTIONS:-} helm get values ${HELM_NAME} --namespace ${NAMESPACE} -
Run the following command to upgrade DevOps Loop:
ADDITIONAL_HELM_OPTIONS=${ADDITIONAL_HELM_OPTIONS:-} helm get values ${HELM_NAME} --namespace ${NAMESPACE} > user_input_values.yaml helm upgrade "${HELM_NAME}" oci://hclcr.io/devops-automation-helm/hcl-devops-loop --namespace ${NAMESPACE} --version=${VERSION} -f user_input_values.yaml ${ADDITIONAL_HELM_OPTIONS} -
Verify that all DevOps Loop
pods and components are running by using the following command:
kubectl get pods -n devops-loop
Results
You have upgraded DevOps Loop.
