Merge pull request #103 from HideyoshiSolutions/changes-liveness-probe-delay
Changes liveness probe delay
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ingress-nginx-controller-loadbalancer
|
||||
namespace: ingress-nginx
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/component: controller
|
||||
app.kubernetes.io/instance: ingress-nginx
|
||||
app.kubernetes.io/name: ingress-nginx
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 443
|
||||
type: LoadBalancer
|
||||
@@ -30,7 +30,12 @@ spec:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8070
|
||||
initialDelaySeconds: 60
|
||||
initialDelaySeconds: 240
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8070
|
||||
initialDelaySeconds: 240
|
||||
env:
|
||||
- name: FRONTEND_PATH
|
||||
valueFrom:
|
||||
|
||||
@@ -28,6 +28,16 @@ spec:
|
||||
cpu: "75m"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 5000
|
||||
initialDelaySeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 5000
|
||||
initialDelaySeconds: 10
|
||||
env:
|
||||
- name: PORT
|
||||
value: "5000"
|
||||
|
||||
@@ -25,6 +25,18 @@ spec:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "75m"
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- touch
|
||||
- /tmp/healthy
|
||||
initialDelaySeconds: 30
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- touch
|
||||
- /tmp/healthy
|
||||
initialDelaySeconds: 30
|
||||
env:
|
||||
- name: ALLOWED_ORIGINS
|
||||
valueFrom:
|
||||
|
||||
@@ -31,6 +31,11 @@ spec:
|
||||
path: /health
|
||||
port: 8000
|
||||
initialDelaySeconds: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8000
|
||||
initialDelaySeconds: 30
|
||||
env:
|
||||
- name: ALLOWED_ORIGINS
|
||||
valueFrom:
|
||||
|
||||
Reference in New Issue
Block a user