mirror of https://github.com/istio/istio.io.git
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:
parent
2064c95f4f
commit
44e56b02ec
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue