Skip to content

Commit

Permalink
feat: Make startupProbe, livenessProbe and readinessProbe configurabl…
Browse files Browse the repository at this point in the history
…e for Executor and API (#151)

* feat: Make initialDelaySeconds configurable for Executor

* update the default value to the previous value

* also make the initialDelaySeconds for API configurable

* correct typo and also parameterise other options
  • Loading branch information
stanleyz authored Oct 20, 2024
1 parent c08b689 commit ef07d1a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/terrakube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.23.0
version: 3.23.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 6 additions & 6 deletions charts/terrakube/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ spec:
httpGet:
path: /actuator/health
port: 8080
failureThreshold: 30
periodSeconds: 10
failureThreshold: {{ .Values.api.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.api.startupProbe.periodSeconds }}
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
initialDelaySeconds: {{ .Values.api.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.api.livenessProbe.periodSeconds }}
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 8080
initialDelaySeconds: 120
periodSeconds: 10
initialDelaySeconds: {{ .Values.api.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.api.readinessProbe.periodSeconds }}
{{- with .Values.api.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 10 }}
Expand Down
12 changes: 6 additions & 6 deletions charts/terrakube/templates/deployment-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ spec:
httpGet:
path: /actuator/health
port: 8090
failureThreshold: 30
periodSeconds: 10
failureThreshold: {{ .Values.executor.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.executor.startupProbe.periodSeconds }}
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8090
initialDelaySeconds: 10
periodSeconds: 10
initialDelaySeconds: {{ .Values.executor.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.executor.livenessProbe.periodSeconds }}
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 8090
initialDelaySeconds: 120
periodSeconds: 10
initialDelaySeconds: {{ .Values.executor.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.executor.readinessProbe.periodSeconds }}
{{- with .Values.executor.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 10 }}
Expand Down
18 changes: 18 additions & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ api:
containerSecurityContext: {}
imagePullSecrets: []
initContainers: []
startupProbe:
failureThreshold: 30
periodSeconds: 10
readinessProbe:
initialDelaySeconds: 120
periodSeconds: 10
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10
cache:
moduleCacheMaxTotal: "128"
moduleCacheMaxIdle: "128"
Expand Down Expand Up @@ -243,6 +252,15 @@ executor:
containerSecurityContext: {}
imagePullSecrets: []
initContainers: []
startupProbe:
failureThreshold: 30
periodSeconds: 10
readinessProbe:
initialDelaySeconds: 120
periodSeconds: 10
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10

## Registry properties
registry:
Expand Down

0 comments on commit ef07d1a

Please sign in to comment.