Adds LivenessProbe
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
|
|
||||||
@@ -31,6 +31,11 @@ spec:
|
|||||||
path: /health
|
path: /health
|
||||||
port: 8070
|
port: 8070
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8070
|
||||||
|
initialDelaySeconds: 60
|
||||||
env:
|
env:
|
||||||
- name: FRONTEND_PATH
|
- name: FRONTEND_PATH
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -28,6 +28,16 @@ spec:
|
|||||||
cpu: "75m"
|
cpu: "75m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 5000
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 5000
|
||||||
|
initialDelaySeconds: 10
|
||||||
env:
|
env:
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: "5000"
|
value: "5000"
|
||||||
|
|||||||
@@ -25,6 +25,18 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
cpu: "75m"
|
cpu: "75m"
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- touch
|
||||||
|
- /tmp/healthy
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- touch
|
||||||
|
- /tmp/healthy
|
||||||
|
initialDelaySeconds: 30
|
||||||
env:
|
env:
|
||||||
- name: ALLOWED_ORIGINS
|
- name: ALLOWED_ORIGINS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ spec:
|
|||||||
path: /health
|
path: /health
|
||||||
port: 8000
|
port: 8000
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8000
|
||||||
|
initialDelaySeconds: 30
|
||||||
env:
|
env:
|
||||||
- name: ALLOWED_ORIGINS
|
- name: ALLOWED_ORIGINS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
Reference in New Issue
Block a user