Skip to content

Commit

Permalink
make liveness and readiness probe initial delay configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed May 30, 2024
1 parent 7362520 commit ea3a467
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion archesproject/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: {{ template "arches.fullname" . }}-env
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ default .Values.image.repository .Values.imageApi.repository }}:{{ default .Chart.AppVersion .Values.imageApi.tag | default .Values.image.tag }}"
image: "{{ default .Values.image.repository .Values.api.image.repository }}:{{ default .Chart.AppVersion .Values.api.image.tag | default .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ['../entrypoint.sh', 'run_api']
ports:
Expand All @@ -46,11 +46,13 @@ spec:
path: /
port: http
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.api.livenessProbe.initialDelaySeconds }}
readinessProbe:
httpGet:
path: /
port: http
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.api.readinessProbe.initialDelaySeconds }}
{{- if or .Values.mappingJsonConfigMap .Values.mappingJson }}
volumeMounts:
- name: mapping-file
Expand Down
11 changes: 8 additions & 3 deletions archesproject/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ image:
repository: flaxandteal/arches
pullPolicy: IfNotPresent

imageApi:
repository: flaxandteal/arches
pullPolicy: IfNotPresent
api:
image:
repository: flaxandteal/arches
pullPolicy: IfNotPresent
readinessProbe:
initialDelaySeconds: 30
livenessProbe:
initialDelaySeconds: 30

imageStatic:
repository: flaxandteal/arches-static
Expand Down

0 comments on commit ea3a467

Please sign in to comment.