Skip to content

Commit 1d3296a

Browse files
Merge pull request #7 from ls1intum/fix-helm-chart
Fix helm chart
2 parents 8fb66b1 + 6f92c5a commit 1d3296a

3 files changed

Lines changed: 47 additions & 3 deletions

File tree

theia-shared-cache/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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: 0.1.4
18+
version: 0.1.5
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

theia-shared-cache/templates/statefulset.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,60 @@ spec:
2121
containers:
2222
- name: theia-shared-cache
2323
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
24-
args: ["start"]
24+
args:
25+
- "start"
26+
{{- if .Values.tls.enabled }}
27+
- "--tls"
28+
- "--tls-cert=/etc/tls/tls.crt"
29+
- "--tls-key=/etc/tls/tls.key"
30+
{{- end }}
2531
ports:
26-
- name: http
32+
- name: {{- if .Values.tls.enabled }} https{{- else }} http{{- end }}
2733
containerPort: 5071
2834
- name: grpc-bazel
2935
containerPort: 6011
3036
resources:
3137
{{ toYaml .Values.resources | nindent 12 }}
38+
livenessProbe:
39+
httpGet:
40+
path: /cache-node-info/health
41+
port: {{ if .Values.tls.enabled }}https{{ else }}http{{ end }}
42+
{{- if .Values.tls.enabled }}
43+
scheme: HTTPS
44+
{{- end }}
45+
initialDelaySeconds: 60
46+
periodSeconds: 10
47+
timeoutSeconds: 5
48+
failureThreshold: 3
49+
50+
readinessProbe:
51+
httpGet:
52+
path: /cache-node-info/health
53+
port: {{ if .Values.tls.enabled }}https{{ else }}http{{ end }}
54+
{{- if .Values.tls.enabled }}
55+
scheme: HTTPS
56+
{{- end }}
57+
initialDelaySeconds: 30
58+
periodSeconds: 5
59+
timeoutSeconds: 3
60+
failureThreshold: 3
3261
env:
3362
- name: EXCLUSIVE_VOLUME_SIZE
3463
value: "{{ .Values.persistence.size }}"
3564
volumeMounts:
3665
- mountPath: /data
3766
name: theia-shared-cache-data-volume
67+
{{- if .Values.tls.enabled }}
68+
- mountPath: /etc/tls
69+
name: tls
70+
readOnly: true
71+
{{- end }}
72+
{{- if .Values.tls.enabled }}
73+
volumes:
74+
- name: tls
75+
secret:
76+
secretName: {{ .Values.tls.secretName }}
77+
{{- end }}
3878
volumeClaimTemplates:
3979
- metadata:
4080
name: theia-shared-cache-data-volume

theia-shared-cache/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ image:
66
tag: "21.2"
77
pullPolicy: IfNotPresent
88

9+
tls:
10+
enabled: false
11+
secretName: cache-internal-cert-secret
12+
913
# Persistence: used for StatefulSet volumeClaimTemplates
1014
persistence:
1115
size: 10Gi

0 commit comments

Comments
 (0)