Update upgrade guide with the new image registry and add missing -n to commands

This commit is contained in:
Rihards Ščeredins 2020-07-20 10:53:34 +03:00
parent 274d09447e
commit 921ae6fed3

View file

@ -24,19 +24,20 @@ spec:
spec:
containers:
- name: nginx-ingress-controller
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0
image: us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.34.0@sha256:56633bd00dab33d92ba14c6e709126a762d54a75a6e72437adefeaaca0abb069
args: ...
```
simply change the `0.30.0` tag to the version you wish to upgrade to.
simply change the `0.34.0` tag to the version you wish to upgrade to.
The easiest way to do this is e.g. (do note you may need to change the name parameter according to your installation):
```
kubectl set image deployment/nginx-ingress-controller \
nginx-ingress-controller=quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.33.0
nginx-ingress-controller=us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.34.1@sha256:0e072dddd1f7f8fc8909a2ca6f65e76c5f0d2fcfb8be47935ae3457e8bbceb20 \
-n ingress-nginx
```
For interactive editing, use `kubectl edit deployment nginx-ingress-controller`.
For interactive editing, use `kubectl edit deployment nginx-ingress-controller -n ingress-nginx`.
## With Helm