O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NGINX

The final part of the deployment is the NGINX container. We need to do a little more work on this one as we need to generate certificates for our cluster. To generate the certificates, we will need to use OpenSSL. This is not installed by default on Windows machines so you can use the following command to install OpenSSL using Chocolatey:

$ choco install openssl.light

Once you have OpenSSL installed, you can generate the certificates by running:

$ mkdir -p certs$ openssl req -x509 -newkey rsa:2048 -keyout certs/key.pem -out certs/cert.pem -nodes -subj "/CN=localhost" -days 365

Once we have the certificates, we need to create a configmap using the nginx.conf file in kubernetes/nginx. To do this, run the following command:

$ kubectl -n ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required