Back to Feast

Uninstall the Helm release

examples/operator-postgres-tls-demo/03-Uninstall.ipynb

0.63.01.0 KB
Original Source
python
# If you have choosen the option 1 example earlier.
!kubectl delete -f ../../infra/feast-operator/config/samples/v1_featurestore_postgres_db_volumes_tls.yaml

# If you have choosen the option 2 example earlier.
!kubectl delete -f ../../infra/feast-operator/config/samples/v1_featurestore_postgres_tls_volumes_ca_env.yaml

#!kubectl delete -f ../../infra/feast-operator/dist/install.yaml

Uninstall the Postgresql using helm

python
# Uninstall the Helm release
!helm uninstall postgresql

# Delete the secrets
!kubectl delete secret postgresql-server-certs
!kubectl delete secret postgresql-client-certs

# Remove the certificates directory
!rm -rf postgres-tls-certs

# Remove PV and PVC for clean up. some times those are not deleted automatically and can cause issues.
# Delete all PVCs in the default namespace
!kubectl delete pvc --all

# Delete all PVs
!kubectl delete pv --all

Ensure everything has been removed, or is in the process of being terminated.

python
!kubectl get all