Adds LivenessProbe

This commit is contained in:
2024-09-04 18:32:59 -03:00
parent 92542006d3
commit 807279e409
5 changed files with 32 additions and 20 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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"

View File

@@ -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:

View File

@@ -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: