Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 967 Bytes

06-cleanup.md

File metadata and controls

37 lines (25 loc) · 967 Bytes

Cleanup

In this last section, we'll delete everything we created.

Delete Istio artifacts

Let's start with deleting Istio Gateway, VirtualService, DestionationRules.

kubectl delete -f gateway.yaml

gateway.networking.istio.io "helloworld-csharp-gateway" deleted

kubectl delete -f virtualservice.yaml

virtualservice.networking.istio.io "helloworld-csharp-virtualservice" deleted

kubectl delete -f destinationrule.yaml

destinationrule.networking.istio.io "helloworld-csharp-destinationrule" deleted

Delete Kubernetes service and deployment

Next, let's delete the Kubernetes resources:

kubectl delete -f service-v1v2.yaml

service "helloworld-csharp-service" deleted
deployment.extensions "helloworld-csharp-deployment-v1" deleted
deployment.extensions "helloworld-csharp-deployment-v2" deleted

Delete cluster

Finally, if you wish, you can also delete the GKE cluster:

gcloud container clusters delete hello-istio