Coder Social home page Coder Social logo

omarmohsen / openshift-nginx-template Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 4.0 31 KB

OpenShift nginx templates, the templates use RPM based docker images as well as config maps instead of building docker images with new configuration each time

openshift nginx yaml template origin

openshift-nginx-template's Introduction

openshift-nginx-template

OpenShift nginx templates, the templates use RPM based docker images as well as config maps instead of building docker images with new configuration each time

Usage

In order to use the template, use the following oc command:

oc process -f nginx-template-centos7.yaml NGINX_ROUTE_HOSTNAME=<nginx route hostname without http> | oc create -f -

or

oc process -f nginx-template-rhel7.yaml NGINX_ROUTE_HOSTNAME=<nginx route hostname without http> | oc create -f -

After modifying the nginx.conf file inside the config map you need to let nginx load the new configuration, either to you can restart the container, or can execute the following command inside the container without restarting:

nginx -s reload

Other Parameters:

NGINX_VERSION: "Specify the nginx version you are using, valid options are: nginx-112, nginx-110, nginx-18"

APP_NAME: "Name of the app, all objects created will have this name except for the imagestream"

NGINX_DEFAULT_HTTP_PORT: "Default port nginx uses to listen on, if you specify a port lower than 1024, the container must run as privileged"

NGINX_ACCESS_LOG_PATH: "Path where nginx should write the access logs, either specify the file or if you want it the logs to be printed in the container logs redirect it to STDOUT by entering the value /dev/stdout"

NGINX_ERROR_LOG_PATH: "Path where nginx should write the error logs, either specify the file or if you want it the logs to be printed in the container logs use /dev/stdout"

ROOT_DIRECTORY_SIZE_IN_GB: "Size of nginx root in GB"

Note: Readiness probe port must be configured manually due to bug

openshift-nginx-template's People

Contributors

omarmohsen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.