Stopping stubs that are running in Istio or Kubernetes

When you no longer require the stub that is running in an Istio or a Kubernetes deployment, you can delete the virtual service of the stub or delete the complete deployment of the stub.

Remove the deployed virtual service

You can delete the virtual service of the stub deployed in Kubernetes by issuing the following command:

# kubectl delete vs <name of virtual service of the stub>

Remove the deployment

You can delete the deployment of the stub in Istio or Kubernetes by issuing the following command:

# kubectl delete svc <name of the service>,<deploy identifier>