Skip to content

Commit

Permalink
fix: Swithing to startupProbe from Readiness (#821)
Browse files Browse the repository at this point in the history
Signed-off-by: Milos Backonja <milos.backonja@iohk.io>
  • Loading branch information
milosbackonja committed Dec 20, 2023
1 parent ea70045 commit 22a78ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 4 additions & 12 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,11 @@ spec:
image: "{{ .Values.server.image.repository }}/{{ .Values.server.image.tag }}:{{ .Values.server.image.version | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.server.image.pullPolicy }}
livenessProbe:
httpGet:
path: /_system/health
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /_system/health
port: 8085
initialDelaySeconds: 5
periodSeconds: 5
{{- toYaml .Values.server.livenessProbe | nindent 10 }}
startupProbe:
{{- toYaml .Values.server.startupProbe | nindent 10 }}
resources:
{{- toYaml .Values.server.resources | nindent 12 }}
{{- toYaml .Values.server.resources | nindent 10 }}
ports:
- containerPort: 8085
- containerPort: 8090
Expand Down
12 changes: 12 additions & 0 deletions infrastructure/charts/agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ server:
requests:
cpu: 250m
memory: 512Mi
livenessProbe:
httpGet:
path: /_system/health
port: 8085
failureThreshold: 1
periodSeconds: 10
startupProbe:
httpGet:
path: /_system/health
port: 8085
failureThreshold: 30
periodSeconds: 10
# Additional environment variables to be added to the server container
additionalEnvVariables: {}
useVault: true
Expand Down

0 comments on commit 22a78ec

Please sign in to comment.