Skip to content

Commit

Permalink
Merge pull request #267 from bci-oss/feature/improve-helm-chart-liveness
Browse files Browse the repository at this point in the history
Make livenessProbe and readinessProbe configurable
  • Loading branch information
tunacicek authored Apr 8, 2024
2 parents a70d19f + 864d57b commit f522a0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/semantic-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sources:
- https://github.com/eclipse-tractusx/sldt-semantic-hub

type: application
version: 0.2.1
version: 0.2.2
appVersion: 0.3.1
dependencies:
- repository: https://charts.bitnami.com/bitnami
Expand Down
12 changes: 6 additions & 6 deletions charts/semantic-hub/templates/hub/hub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ spec:
httpGet:
path: /actuator/health/liveness
port: {{ .Values.hub.containerPort }}
initialDelaySeconds: 100
periodSeconds: 3
failureThreshold: 3
initialDelaySeconds: {{ .Values.hub.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.hub.livenessProbe.periodSeconds }}
failureThreshold: {{ .Values.hub.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: {{ .Values.hub.containerPort }}
initialDelaySeconds: 60
periodSeconds: 3
failureThreshold: 3
initialDelaySeconds: {{ .Values.hub.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.hub.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.hub.readinessProbe.failureThreshold }}
resources:
{{ .Values.hub.resources | toYaml | indent 12 }}
imagePullSecrets:
Expand Down
8 changes: 8 additions & 0 deletions charts/semantic-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ hub:
service:
port: 8080
type: ClusterIP
livenessProbe:
failureThreshold: 3
periodSeconds: 3
initialDelaySeconds: 100
readinessProbe:
failureThreshold: 3
periodSeconds: 3
initialDelaySeconds: 100
ingress:
## Enable ingress for the Semantic Hub
enabled: false
Expand Down

0 comments on commit f522a0a

Please sign in to comment.