diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 5feed85..820fbb8 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -64,24 +64,24 @@ spec: ports: - containerPort: 5000 name: RESOURCE_NAME -# livenessProbe: -# httpGet: -# path: /health -# port: 5000 -# initialDelaySeconds: 30 -# periodSeconds: 30 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 1 -# readinessProbe: -# httpGet: -# port: 5000 -# path: /readiness -# initialDelaySeconds: 30 -# periodSeconds: 5 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 1 + livenessProbe: + httpGet: + path: /health + port: 5000 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 + readinessProbe: + httpGet: + port: 5000 + path: /readiness + initialDelaySeconds: 30 + periodSeconds: 5 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 imagePullPolicy: Always resources: requests: diff --git a/configuration/kubernetes/service.yaml b/configuration/kubernetes/service.yaml index bcb0e4d..16f198b 100644 --- a/configuration/kubernetes/service.yaml +++ b/configuration/kubernetes/service.yaml @@ -10,7 +10,7 @@ spec: app: RESOURCE_NAME ports: - port: 5000 - protocol: TCP + protocol: HTTP targetPort: 5000 sessionAffinity: None type: ClusterIP \ No newline at end of file