Modified: for 12.1.1
In this section:
List the Helm charts that are deployed in the cluster.
[jdoe@cli-blr-1 12.1.1-142_build_SBC]$ helm list NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION vgsbc sbc-svt 3 2024-03-05 20:35:40.949699595 +0530 IST deployed rbbn-core-cnf-12.1.1-135 12.1.1-135
Uninstall the SBC CNe deployment.
#helm uninstall mysiprec
Once the Helm uninstall command completes, verify that all of the resources (for example, Deployment, Statefulset, Replicaset, Pods, Configmap, Role/RoleBindings, PVCs, Jobs, and so on) are deleted under the namespace where the SBC CNe is deployed.
To ensure that associated PVCs are getting deleted automatically during the Helm uninstall, set deleteCachePvc
to "true
" in the Helm chart at the time of instantiation. Since the redis-cache pod is statefulset, when the helm uninstall command is performed, the PVCs associated to the redis-cache pods/statefulset won't be deleted if deleteCachePvc
is set to "false
" . In that case, manually delete the PVCs using:
#oc delete pvc <redis-cache-pvc-names>
Edit the kustomization.yaml
file to remove the SBC CNe deployment file name initially added during the installation of the SBC CNe via git.
apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization nameSuffix: -jdoe resources: - values_sbc.yaml ---> This is the name of the HelmRelease file
Make sure all the resources (for example: Deployment, Statefulset, Replicaset, Pods, Configmap, Role/RoleBindings, PVCs, Jobs, and so on) under the namespace (where the SBC CNe is deployed) are deleted.
To ensure that associated PVCs are getting deleted automatically during the Helm uninstall, set deleteCachePvc
to "true
" in the Helm chart at the time of instantiation. Since the redis-cache pod is statefulset, when the helm uninstall command is performed, the PVCs associated to the redis-cache pods/statefulset won't be deleted if deleteCachePvc
is set to "false
" . In that case, manually delete the PVCs using:
#oc delete pvc <redis-cache-pvc-names>