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 e4c8488d68
commit 58c8bfdca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
```