diff --git a/charts/service-deployment/templates/deployment.yaml b/charts/service-deployment/templates/deployment.yaml index c4e9fbd..6ab59d1 100644 --- a/charts/service-deployment/templates/deployment.yaml +++ b/charts/service-deployment/templates/deployment.yaml @@ -74,6 +74,19 @@ spec: resources: {{- toYaml .Values.resources | nindent 10 }} + {{- if ne .Values.readinessProbe.httpGet.path "" }} + readinessProbe: + httpGet: + path: {{ .Values.readinessProbe.httpGet.path }} + port: {{ .Values.service.port }} + scheme: HTTP + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + {{- end }} + {{- if .Values.configMaps }} volumeMounts: {{- range $v := .Values.configMaps }} diff --git a/charts/service-deployment/values.yaml b/charts/service-deployment/values.yaml index b243727..85b3c78 100644 --- a/charts/service-deployment/values.yaml +++ b/charts/service-deployment/values.yaml @@ -40,12 +40,23 @@ resources: {} # cpu: 400m # memory: 512Mi +# -- Details of the readinessProbe that will send HTTP request on the service.port +readinessProbe: + httpGet: + # -- Path for health checks to be performed (note: set to "" to disable) + path: "/" + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 5 + failureThreshold: 3 + successThreshold: 2 + # -- Grace period for termination of the service terminationGracePeriodSeconds: 60 hpa: # -- Whether to deploy HPA rules - deploy: false + deploy: true # -- Minimum number of pods to deploy minReplicas: 1 # -- Maximum number of pods to deploy @@ -55,7 +66,7 @@ hpa: service: # -- Whether to setup service bindings (note: only NodePort is supported) - deploy: false + deploy: true # -- Port to bind and expose the service on port: 80 aws: