Skip to content

Commit

Permalink
feat(Charts): Test orchestrator charts
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Oct 18, 2023
1 parent a5f5ce5 commit 3ead6a8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
22 changes: 18 additions & 4 deletions charts/bpdm/charts/bpdm-orchestrator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,25 @@ spec:
protocol: TCP
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12}}
httpGet:
path: {{.Values.livenessProbe.path}}
port: {{.Values.livenessProbe.port}}
scheme: HTTP
initialDelaySeconds: {{.Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{.Values.livenessProbe.periodSeconds}}
timeoutSeconds: {{.Values.livenessProbe.timeoutSeconds}}
successThreshold: {{.Values.livenessProbe.successThreshold}}
failureThreshold: {{.Values.livenessProbe.failureThreshold}}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12}}
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12}}
httpGet:
path: {{.Values.readinessProbe.path}}
port: {{.Values.readinessProbe.port}}
scheme: HTTP
initialDelaySeconds: {{.Values.readinessProbe.initialDelaySeconds}}
periodSeconds: {{.Values.readinessProbe.periodSeconds}}
timeoutSeconds: {{.Values.readinessProbe.timeoutSeconds}}
successThreshold: {{.Values.readinessProbe.successThreshold}}
failureThreshold: {{.Values.readinessProbe.failureThreshold}}
resources:
{{- toYaml .Values.resources | nindent 12}}
volumeMounts:
Expand Down
39 changes: 17 additions & 22 deletions charts/bpdm/charts/bpdm-orchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,33 +84,28 @@ affinity:
topologyKey: kubernetes.io/hostname

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: 8085
scheme: HTTP
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 5
# -- Number of seconds to wait before performing the first liveness probe
initialDelaySeconds: 60
# -- Number of seconds to wait between consecutive probes
periodSeconds: 10
# -- Number of consecutive successful probes before a pod is considered healthy
successThreshold: 1
timeoutSeconds: 1
# -- Number of seconds after which a liveness probe times out
timeoutSeconds: 10
# -- HTTP endpoint
path: /actuator/health/readiness
# -- Port used
port: 8085
# -- Determine when a pod is ready to start accepting requests
readinessProbe:
httpGet:
path: "/actuator/health/readiness"
port: 8085
scheme: HTTP
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
startupProbe:
httpGet:
path: "/actuator/health/readiness"
port: 8085
scheme: HTTP
initialDelaySeconds: 60
failureThreshold: 20
periodSeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
path: /actuator/health/readiness
port: 8085


# Used to overwrite the default property values of the application configuration
Expand Down

0 comments on commit 3ead6a8

Please sign in to comment.