Skip to content

Commit 55a97c2

Browse files
authored
Merge pull request #87 from InseeFrLab/shinyproxy-variabilize-probes
[Shinyproxy] variabilize probes
2 parents 8a686a5 + 0140c0b commit 55a97c2

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

charts/shinyproxy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.2.0
18+
version: 2.2.1
1919

2020
dependencies:
2121
- name: library-chart
22-
version: 1.5.23
22+
version: 1.7.11
2323
repository: https://inseefrlab.github.io/helm-charts-interactive-services

charts/shinyproxy/templates/deployment.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,23 @@ spec:
3535
- name: http
3636
containerPort: 8080
3737
protocol: TCP
38+
{{- if .Values.livenessProbe.enabled }}
3839
livenessProbe:
3940
httpGet:
4041
path: /actuator/health/liveness
4142
port: 9090
42-
periodSeconds: 20
43-
initialDelaySeconds: 2
43+
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
44+
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
45+
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
46+
{{- end }}
47+
{{- if .Values.readinessProbe.enabled }}
4448
readinessProbe:
4549
httpGet:
4650
path: /actuator/health/readiness
4751
port: 9090
48-
periodSeconds: 20
49-
initialDelaySeconds: 2
52+
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
53+
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
54+
{{- end }}
5055
resources:
5156
{{- toYaml .Values.proxyDeploy.resources | nindent 12 }}
5257
volumes:

charts/shinyproxy/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,13 @@ monitor:
9595
interval: 10s
9696
micrometer:
9797
prefix: ""
98+
99+
livenessProbe:
100+
enabled: true
101+
periodSeconds: 20
102+
initialDelaySeconds: 2
103+
failureThreshold: 3
104+
readinessProbe:
105+
enabled: true
106+
initialDelaySeconds: 2
107+
periodSeconds: 20

0 commit comments

Comments
 (0)