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
|
- host: oslo.pub
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- path: /
|
||||||
|
backend:
|
||||||
serviceName: nginx
|
serviceName: nginx
|
||||||
servicePort: 80
|
servicePort: 6756
|
||||||
|
|
|
@ -25,6 +25,13 @@ http {
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
location / {
|
||||||
|
return 200 "ok";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name oslo.pub;
|
server_name oslo.pub;
|
||||||
|
|
|
@ -51,5 +51,5 @@ spec:
|
||||||
app: nginx
|
app: nginx
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 6756
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
|
Loading…
Reference in a new issue