Slightly modified NGINX image for use in Pluralsight courses.
391
Slightly modified NGINX image for use in Pluralsight courses.
Base NGINX (FROM nginx) modified to run as a proxy sending traffic to a custom back-end at ps-ambassador.
The container will fail if it doesn't find a K8s Service with the name "ps-ambassador".
nginx.conf
worker_processes 1;
worker_rlimit_nofile 4096;
events {
worker_connections 512;
}
http {
upstream backend {
server ps-ambassador;
}
server {
listen 9000;
location / {
proxy_pass http://backend;
}
}
}
Dockerfile
# Build from the latest official NGINX image
FROM nginx
LABEL maintainer="Nigel Poulton [email protected] @nigelpoulton"
# Add config to make loadbalancer (could be done via ConfigMap, but would detract form the example)
COPY nginx.conf /etc/nginx/nginx.conf
Content type
Image
Digest
Size
48.7 MB
Last updated
over 6 years ago
docker pull nigelpoulton/nginx-ambassador:1.0