Skip to content

Instantly share code, notes, and snippets.

@mike-engel
Last active Oct 28, 2018
Embed
What would you like to do?
user www;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log /var/log/nginx/access.log;
keepalive_timeout 3000;
server {
listen 8201;
server_name localhost;
client_max_body_size 32m;
location = / {
return 200 "OK";
add_header Content-Type "text/plain; charset=utf-8";
add_header Content-Length 2;
}
location / {
proxy_pass http://127.0.0.1:8200;
proxy_redirect off;
}
}
}
apiVersion: v1
kind: Service
metadata:
name: app
spec:
type: LoadBalancer
ports:
- port: 8200
targetPort: 8201
name: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment