4 Uninstalling OCNWDAF
To perform an automated uninstall, run the following command:
helm uninstall <installation name> -n $K8_NAMESPACE
This command removes all the resources including the PVCs.
Sample Output:
[cloud-user@occne224-cluster-bastion-1 ]$ helm uninstall nwdaf -n $K8_NAMESPACE
W0404 05:04:57.056877 3860334 warnings.go:70] autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler
W0404 05:04:57.065008 3860334 warnings.go:70] autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler
release "nwdaf" uninstalledTo verify if the uninstallation procedure is successful, see Verify Uninstallation.
To perform a manual uninstall, run the following commands:
helm uninstall <installation name> -n <namespace> --no-hookskubectl delete statefulset.apps/nwdaf-mysql-innodb-cluster deployment.apps/nwdaf-mysql-innodb-cluster-router service/nwdaf-mysql-innodb-cluster innodbcluster/nwdaf-mysql-innodb-cluster --ignore-not-found -n <namespace>
kubectl delete all --all -n $K8_NAMESPACE && kubectl delete secret --all -n $K8_NAMESPACECaution:
Thekubectl delete command deletes all the Kubernetes objects of the specified namespace.
For troubleshooting procedures, see, Oracle Communications Networks Data Analytics Function Troubleshooting Guide.
4.1 Verify Uninstallation
To verify the OCNWDAF uninstallation, run the following command:
$ kubectl get all -n <release-namespace>In case of successful uninstallation, no OCNWDAF resources are displayed in the command output.
Sample Output:
[cloud-user@occne224-cluster-bastion-1 ~]$ kubectl get all -n $K8_NAMESPACE
No resources found in nwdaf-test namespace.