fix(k8s): Add nginx route for load-balancer health checks
This commit is contained in:
parent
f2e0f3ee27
commit
d577629b5b
3 changed files with 11 additions and 3 deletions
|
@ -18,6 +18,7 @@ spec:
|
|||
- host: oslo.pub
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: nginx
|
||||
servicePort: 80
|
||||
servicePort: 6756
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -51,5 +51,5 @@ spec:
|
|||
app: nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
port: 6756
|
||||
targetPort: 80
|
||||
|
|
Loading…
Reference in a new issue