OpenShift - nginx pod as SSL termination and load balancer OpenShift - nginx pod as SSL termination and load balancer nginx nginx

OpenShift - nginx pod as SSL termination and load balancer


The documentation for the nginx 1.14 version of this image can be found here

This is an s2i image. s2i is a build mechanism that takes source code (in your case the nginx configuration) and a base s2i image (in your case the sclorg nginx contianer image) and produces a runtime image (in your case an nginx image with configuration).

Based on the above documentation for that nginx s2i image if you point the s2i build process at a VCS repository (or local directory) with any of the following files inside it, they will automatically be consumed by the nginx s2i builder image to produce a configured runtime container image.

./nginx.conf-- The main nginx configuration file./nginx-cfg/*.confShould contain all nginx configuration we want to include into image./nginx-default-cfg/*.confContains any nginx config snippets to include in the default server block./nginx-start/*.shContains shell scripts that are sourced right before nginx is launched./Should contain nginx application source code

In your case that means you can either put your configuration in a nginx.conf file to overwrite the entire nginx configuration or in a ./nginx-cfg/*.conf file to just add your configuration to the default nginx.conf file.