diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 7853f79..d5bfe7b 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -64,31 +64,31 @@ spec: ports: - containerPort: 9090 name: RESOURCE_NAME -# livenessProbe: -# httpGet: -# path: /health -# port: 9090 -# initialDelaySeconds: 30 -# periodSeconds: 30 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 1 -# readinessProbe: -# httpGet: -# port: 9090 -# path: /readiness -# initialDelaySeconds: 30 -# periodSeconds: 5 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 1 + livenessProbe: + httpGet: + path: /health + port: 9090 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 + readinessProbe: + httpGet: + port: 9090 + path: /readiness + initialDelaySeconds: 30 + periodSeconds: 5 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 imagePullPolicy: Always resources: requests: cpu: 10m memory: 16Mi limits: - cpu: 50m + cpu: 25m memory: 32Mi restartPolicy: Always imagePullSecrets: diff --git a/src/probes/probes.py b/src/probes/probes.py index af0d497..76f4978 100644 --- a/src/probes/probes.py +++ b/src/probes/probes.py @@ -46,7 +46,7 @@ def readiness(): }), 503, {'ContentType': 'application/json'} def runFlaskProbes(): - app.run(port=9090) + app.run(port=9090, host="0.0.0.0") if __name__ == '__main__': runFlaskProbes() \ No newline at end of file