Back to Feast

04 Uninstall

examples/operator-rbac/04-uninstall.ipynb

0.63.01.2 KB
Original Source
python
## Uninstall

Uninstall the Operator and Feast Instance

python
!kubectl delete -f ../../infra/feast-operator/config/samples/v1_featurestore_kubernetes_auth.yaml
!kubectl delete -f ../../infra/feast-operator/dist/install.yaml

Delete RoleBindings and ServiceAccounts

python
!echo "Deleting RoleBindings..."
!kubectl delete rolebinding feast-user-rolebinding -n feast --ignore-not-found
!kubectl delete rolebinding feast-admin-rolebinding -n feast --ignore-not-found

!echo "Deleting ServiceAccounts..."
!kubectl delete serviceaccount feast-user-sa -n feast --ignore-not-found
!kubectl delete serviceaccount feast-admin-sa -n feast --ignore-not-found
!kubectl delete serviceaccount feast-unauthorized-user-sa -n feast --ignore-not-found

Delete Client Example Deployments

python
!kubectl delete -f client/admin_user_deployment.yaml
!kubectl delete -f client/readonly_user_deployment.yaml
!kubectl delete -f client/unauthorized_user_deployment.yaml
!kubectl delete configmap client-feature-repo-config -n feast

Validate all Objects Removed from Namespace and Delete the Namespace

python
!kubectl get all -n feast
python
!kubectl delete namespace feast