11apiVersion : apps/v1
22kind : StatefulSet
33metadata :
4- name : {{ include " theia-shared-cache.fullname" . }}-node
4+ name : theia-shared-cache
55 labels :
6- app.kubernetes.io/name : {{ include " theia-shared-cache.name" . }}
7- app.kubernetes.io/instance : {{ .Release.Name }}
6+ app.kubernetes.io/name : theia-shared-cache
7+ app.kubernetes.io/instance : theia-shared-cache
88spec :
99 selector :
1010 matchLabels :
11- app.kubernetes.io/name : {{ include " theia-shared-cache.name" . }}
12- app.kubernetes.io/instance : {{ .Release.Name }}
13- serviceName : {{ include " theia-shared-cache.fullname" . }}-node
11+ app.kubernetes.io/name : theia-shared-cache
12+ app.kubernetes.io/instance : theia-shared-cache
13+ serviceName : theia-shared-cache
1414 replicas : {{ .Values.replicaCount | default 1 }}
1515 template :
1616 metadata :
1717 labels :
18- app.kubernetes.io/name : {{ include " theia-shared-cache.name" . }}
19- app.kubernetes.io/instance : {{ .Release.Name }}
18+ app.kubernetes.io/name : theia-shared-cache
19+ app.kubernetes.io/instance : theia-shared-cache
2020 spec :
2121 containers :
22- - name : build-cache-node
22+ - name : theia-shared-cache
2323 image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
2424 args : ["start"]
2525 ports :
@@ -28,16 +28,16 @@ spec:
2828 - name : grpc-bazel
2929 containerPort : 6011
3030 resources :
31- {{ toYaml .Values.resources | indent 12 }}
31+ {{ toYaml .Values.resources | nindent 12 }}
3232 env :
3333 - name : EXCLUSIVE_VOLUME_SIZE
3434 value : " {{ .Values.persistence.size }}"
3535 volumeMounts :
3636 - mountPath : /data
37- name : {{ include " theia-shared-cache.fullname" . }} -data
37+ name : theia-shared-cache-data-volume
3838 volumeClaimTemplates :
3939 - metadata :
40- name : {{ include " theia-shared-cache.fullname" . }} -data
40+ name : theia-shared-cache-data-volume
4141 spec :
4242 accessModes :
4343 - ReadWriteOnce
0 commit comments