fix(k8s): Add nginx route for load-balancer health checks

This commit is contained in:
Vincent Ambo 2019-09-02 20:16:49 +01:00
parent f2e0f3ee27
commit d577629b5b
3 changed files with 11 additions and 3 deletions

View file

@ -18,6 +18,7 @@ spec:
- host: oslo.pub
http:
paths:
- backend:
- path: /
backend:
serviceName: nginx
servicePort: 80
servicePort: 6756

View file

@ -25,6 +25,13 @@ http {
sendfile on;
keepalive_timeout 65;
server {
listen 80 default_server;
location / {
return 200 "ok";
}
}
server {
listen 80;
server_name oslo.pub;

View file

@ -51,5 +51,5 @@ spec:
app: nginx
ports:
- protocol: TCP
port: 80
port: 6756
targetPort: 80