Skip to content

Commit

Permalink
Added new probes for auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
anttileppa committed Apr 17, 2024
1 parent 88d90bf commit db8a52b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,31 @@ spec:
requests:
cpu: {{ .Values.resources.requests.cpu }}
memory: {{ .Values.resources.requests.memory }}
livenessProbe:
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}

startupProbe:
httpGet:
path: /health/started
port: 8080
scheme: HTTP
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}

livenessProbe:
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
httpGet:
path: /health
port: 8080
scheme: HTTP
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}

readinessProbe:
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
httpGet:
path: /health/ready
port: 8080
scheme: HTTP
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
6 changes: 4 additions & 2 deletions charts/transport-management/charts/auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ resources:
cpu: 250m
memory: 512Mi

startupProbe:
failureTreshold: 30
periodSeconds: 10

livenessProbe:
failureTreshold: 3
initialDelaySeconds: 240
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30

readinessProbe:
failureTreshold: 3
initialDelaySeconds: 240
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
Expand Down

0 comments on commit db8a52b

Please sign in to comment.