In this last section, we'll delete everything we created.
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
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
Finally, if you wish, you can also delete the GKE cluster:
gcloud container clusters delete hello-istio