Skip to content

Commit 3db590c

Browse files
Add liveness and readiness probes to registry viewer container in the OpenShift template (#164)
* readded liveness and readiness probes to registry viewer container. Signed-off-by: Michael Valdron <[email protected]> * remove unnecessary container port on registry viewer spec. Signed-off-by: Michael Valdron <[email protected]> * timeouts on registry viewer probes increased. Signed-off-by: Michael Valdron <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]>
1 parent 490f1a6 commit 3db590c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.ci/deploy/devfile-registry.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ objects:
9191
scheme: HTTP
9292
initialDelaySeconds: 30
9393
periodSeconds: 10
94-
timeoutSeconds: 10
94+
timeoutSeconds: 20
9595
resources:
9696
requests:
9797
cpu: 100m
@@ -109,15 +109,29 @@ objects:
109109
- image: ${REGISTRY_VIEWER_IMAGE}:${IMAGE_TAG}
110110
imagePullPolicy: "${REGISTRY_VIEWER_PULL_POLICY}"
111111
name: devfile-registry-viewer
112-
ports:
113-
- containerPort: 3000
114112
securityContext:
115113
allowPrivilegeEscalation: false
116114
runAsNonRoot: true
117115
capabilities:
118116
drop: ["ALL"]
119117
seccompProfile:
120118
type: "RuntimeDefault"
119+
livenessProbe:
120+
httpGet:
121+
path: /viewer
122+
port: 3000
123+
scheme: HTTP
124+
initialDelaySeconds: 15
125+
periodSeconds: 10
126+
timeoutSeconds: 20
127+
readinessProbe:
128+
httpGet:
129+
path: /viewer
130+
port: 3000
131+
scheme: HTTP
132+
initialDelaySeconds: 15
133+
periodSeconds: 10
134+
timeoutSeconds: 20
121135
resources:
122136
requests:
123137
cpu: 100m

0 commit comments

Comments
 (0)