Add a configuration property to the helm chart to not define liveness and (#15429)

readiness probes on che server. This is helpful when debugging and pausing
the server for a longer time.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
7.20.x
Lukas Krejci 2020-01-30 12:59:43 +01:00 committed by GitHub
parent abb934cf78
commit 84cbaecfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -125,6 +125,7 @@ spec:
imagePullPolicy: {{ .Values.cheImagePullPolicy }}
securityContext:
runAsUser: {{ .Values.global.securityContext.runAsUser }}
{{- if not .Values.che.disableProbes }}
livenessProbe:
httpGet:
path: /api/system/state
@ -132,6 +133,14 @@ spec:
scheme: HTTP
initialDelaySeconds: 120
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /api/system/state
port: 8080
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 60
{{- end }}
name: che
ports:
- containerPort: 8080
@ -142,13 +151,6 @@ spec:
name: jgroups-ping
- containerPort: 8087
name: http-metrics
readinessProbe:
httpGet:
path: /api/system/state
port: 8080
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 60
resources:
limits:
memory: 600Mi

View File

@ -94,6 +94,7 @@ che:
# pluginBroker:
# waitTimeoutMin: "3"
# pluginRegistryUrl: "https://che-plugin-registry.openshift.io/v3"
disableProbes: false
cheDevfileRegistry:
deploy: true