Skip to content

Commit 6215550

Browse files
authored
Helm Specs Update (#221)
* update timeout values for index server and registry viewer Signed-off-by: Jordan Dubrick <[email protected]> * add securitycontext and remove env file Signed-off-by: Jordan Dubrick <[email protected]> --------- Signed-off-by: Jordan Dubrick <[email protected]>
1 parent a61d432 commit 6215550

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

deploy/chart/devfile-registry/templates/deployment.yaml

+11-15
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ spec:
3838
release: "{{ .Release.Name }}"
3939
heritage: "{{ .Release.Service }}"
4040
spec:
41+
{{- if .Values.persistence.enabled }}
42+
securityContext:
43+
runAsNonRoot: true
44+
runAsUser: 1001
45+
runAsGroup: 2001
46+
fsGroup: 3001
47+
{{- end }}
4148
volumes:
4249
- name: devfile-registry-storage
4350
{{- if .Values.persistence.enabled }}
@@ -52,12 +59,6 @@ spec:
5259
items:
5360
- key: registry-config.yml
5461
path: config.yml
55-
- name: viewer-env-file
56-
configMap:
57-
name: {{ template "devfileregistry.fullname" . }}
58-
items:
59-
- key: .env.registry-viewer
60-
path: .env.production
6162
containers:
6263
- image: "{{ .Values.devfileIndex.image }}:{{ .Values.devfileIndex.tag }}"
6364
imagePullPolicy: {{ .Values.devfileIndex.imagePullPolicy }}
@@ -87,8 +88,8 @@ spec:
8788
port: 3000
8889
scheme: HTTP
8990
initialDelaySeconds: 30
90-
periodSeconds: 1
91-
timeoutSeconds: 10
91+
periodSeconds: 10
92+
timeoutSeconds: 20
9293
{{- end }}
9394
resources:
9495
limits:
@@ -121,15 +122,15 @@ spec:
121122
scheme: HTTP
122123
initialDelaySeconds: 15
123124
periodSeconds: 10
124-
timeoutSeconds: 3
125+
timeoutSeconds: 20
125126
readinessProbe:
126127
httpGet:
127128
path: /viewer
128129
port: 3000
129130
scheme: HTTP
130131
initialDelaySeconds: 15
131132
periodSeconds: 10
132-
timeoutSeconds: 3
133+
timeoutSeconds: 20
133134
resources:
134135
limits:
135136
memory: {{ .Values.registryViewer.memoryLimit }}
@@ -147,11 +148,6 @@ spec:
147148
"fqdn": "{{ template "devfileregistry.ingressUrl" . }}"
148149
}
149150
]
150-
volumeMounts:
151-
- name: viewer-env-file
152-
mountPath: /app/.env.production
153-
subPath: .env.production
154-
readOnly: true
155151
securityContext:
156152
allowPrivilegeEscalation: false
157153
runAsNonRoot: true

0 commit comments

Comments
 (0)