chapter12/sample01/clean.sh
kubectl delete deployments sts-deployment
kubectl delete deployments orders-deployment
kubectl delete deployments inventory-deployment

kubectl delete service sts-service
kubectl delete service orders-service
kubectl delete service inventory-service

kubectl delete configmap orders-application-properties-config-map
kubectl delete configmap orders-keystore-config-map
kubectl delete configmap orders-keystore-config-map
kubectl delete configmap sts-application-properties-config-map
kubectl delete configmap sts-jwt-keystore-config-map
kubectl delete configmap sts-keystore-config-map

kubectl delete policy ecomm-authn-policy

kubectl delete secret orders-key-credentials
kubectl delete secret sts-keystore-secrets

kubectl delete ClusterRbacConfig default
kubectl delete ServiceRole order-viewer
kubectl delete ServiceRole order-admin
kubectl delete ServiceRoleBinding order-viewer-binding

kubectl delete destinationrules.networking.istio.io -n istio-system ecomm-authn-istio-gateway-mtls
kubectl delete destinationrules.networking.istio.io ecomm-authn-service-mtls
