Skip to content

Instantly share code, notes, and snippets.

@Harsimran1
Last active December 15, 2019 12:12
Show Gist options
  • Save Harsimran1/7c9a5740c74fe02b3d3d6a5e041c5d60 to your computer and use it in GitHub Desktop.
Save Harsimran1/7c9a5740c74fe02b3d3d6a5e041c5d60 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
worker_processes 3;
pid /tmp/nginx.pid; # Changed from /var/run/nginx.pid
error_log /var/log/nginx/error.log;
events {
worker_connections 10240;
}
http {
server {
listen 8080; # Changed from default 80 port
server_name _;
location / {
root html;
index index.html index.htm;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment