health readiness check: add /healthz endpoint for nginx readiness check, set failure threshold to 3 (similar to ingress) (#562)
This commit is contained in:
parent
17e1628d2d
commit
21745fb6f8
@ -63,9 +63,13 @@ spec:
|
|||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /healthz
|
||||||
port: 80
|
port: 8880
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
timeoutSeconds: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
include ./resolvers/resolvers.conf;
|
include ./resolvers/resolvers.conf;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 8880;
|
||||||
|
|
||||||
|
# health check for k8s
|
||||||
|
location /healthz {
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
@ -24,7 +34,7 @@ server {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
|
|
||||||
# used in both k8s and docker: RWP_BASE_URL set in Dockerfile
|
# serve replay service worker, RWP_BASE_URL set in Dockerfile
|
||||||
location /replay/sw.js {
|
location /replay/sw.js {
|
||||||
add_header Content-Type application/javascript;
|
add_header Content-Type application/javascript;
|
||||||
return 200 'importScripts("${RWP_BASE_URL}sw.js");';
|
return 200 'importScripts("${RWP_BASE_URL}sw.js");';
|
||||||
|
Loading…
Reference in New Issue
Block a user