January 2018
Intermediate to advanced
318 pages
7h 6m
English
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 ...
Read now
Unlock full access