Fix command used to detect version
Without this fix error "Error: unknown flag: --version" occurs.
This commit is contained in:
parent
e4c8488d68
commit
58c8bfdca7
1 changed files with 1 additions and 1 deletions
|
@ -245,5 +245,5 @@ To detect which version of the ingress controller is running, exec into the pod
|
||||||
```console
|
```console
|
||||||
POD_NAMESPACE=ingress-nginx
|
POD_NAMESPACE=ingress-nginx
|
||||||
POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app=ingress-nginx -o jsonpath={.items[0].metadata.name})
|
POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app=ingress-nginx -o jsonpath={.items[0].metadata.name})
|
||||||
kubectl exec -it $POD_NAME -n $POD_NAMESPACE /nginx-ingress-controller --version
|
kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- /nginx-ingress-controller --version
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue