Last active
October 28, 2018 22:02
-
-
Save mike-engel/a1c11cd6d0edcdab6fd912619b33d972 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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