Fix command used to detect version

Without this fix error "Error: unknown flag: --version" occurs.
This commit is contained in:
Александр Костырев 2017-11-17 21:32:01 +03:00 committed by GitHub
parent 9031e262f2
commit 384c86985d

View file

@ -245,5 +245,5 @@ To detect which version of the ingress controller is running, exec into the pod
```console
POD_NAMESPACE=ingress-nginx
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
```