Upgrading NGINX Version in NGINX Ingress Controller to 1.21.0.
NGINX Ingress Controller release 1.11.3 will include NGINX version 1.21.0. Until 1.11.3 is released, you can use the following instructions to upgrade NGINX version to 1.21.0. The instructions are provided for the Debian-based image.
Note: This document will be removed once NGINX Ingress Controller 1.11.3 is released.
- Docker v18.09+
- GNU Make
Clone the NGINX Docker builds repo:
$ git clone https://github.com/nginxinc/docker-nginx
Change to the mainline Debian folder:
$ cd docker-nginx/mainline/debian
1.21.0in the line
Dockerfile. If the version is already updated in
Dockerfile, skip this step.
Build an image with NGINX 1.21 with the name
$ docker build -t nginx-mainline:1.21.0 .
Check out release 1.11.2 of the NGINX Ingress Controller:
$ git clone https://github.com/nginxinc/kubernetes-ingress/ $ cd kubernetes-ingress $ git checkout v1.11.2
FROM nginx:$NGINX_VERSION AS debianwith
FROM nginx-mainline:1.21.0 AS debianin
Build and push the Debian-based image to your private registry – see Step 3 and Step 4 of the Building the Ingress Controller Image doc.
Once the image is built, upgrade your Ingress Controller to use the new image.