unite all the ingress cleanup steps in one step (#1423)

to enable cleanup by one copy&paste
use kubectl delete --ignore-not-found=true flag, so if a secret was not
defined, no error will be printed
This commit is contained in:
Vadim Eisenberg 2018-06-04 16:28:02 +03:00 committed by Martin Taillefer
parent 2064c95f4f
commit 44e56b02ec
1 changed files with 7 additions and 17 deletions

View File

@ -325,24 +325,14 @@ external traffic.
## Cleanup
1. Remove the `Gateway` configuration.
Delete the `Gateway` configuration, the `VirtualService` and the secret, and shutdown the [httpbin](https://github.com/istio/istio/tree/master/samples/httpbin) service:
```command
$ istioctl delete gateway httpbin-gateway
```
1. Remove the `VirtualService` and secret.
```command
$ istioctl delete virtualservice httpbin
$ kubectl delete -n istio-system secret istio-ingressgateway-certs
```
1. Shutdown the [httpbin](https://github.com/istio/istio/tree/master/samples/httpbin) service.
```command
$ kubectl delete -f samples/httpbin/httpbin.yaml
```
```command
$ istioctl delete gateway httpbin-gateway
$ istioctl delete virtualservice httpbin
$ kubectl delete --ignore-not-found=true -n istio-system secret istio-ingressgateway-certs
$ kubectl delete --ignore-not-found=true -f samples/httpbin/httpbin.yaml
```
## What's next