@@ -207,23 +207,23 @@ deployment in a K8s cluster.
207
207
apiVersion : apps/v1
208
208
kind : Deployment
209
209
metadata :
210
- name : redisinsight # deployment name
210
+ name : redisinsight # deployment name
211
211
labels :
212
- app : redisinsight # deployment label
212
+ app : redisinsight # deployment label
213
213
spec :
214
- replicas : 1 # a single replica pod
214
+ replicas : 1 # a single replica pod
215
215
selector :
216
216
matchLabels :
217
- app : redisinsight # which pods is the deployment managing, as defined by the pod template
218
- template : # pod template
217
+ app : redisinsight # which pods is the deployment managing, as defined by the pod template
218
+ template : # pod template
219
219
metadata :
220
220
labels :
221
- app : redisinsight # label for pod/s
221
+ app : redisinsight # label for pod/s
222
222
spec :
223
223
containers :
224
- - name : redisinsight # Container name (DNS_LABEL, unique)
225
- image : redis/redisinsight:latest # repo/image
226
- imagePullPolicy : IfNotPresent # Always pull image
224
+ - name : redisinsight # Container name (DNS_LABEL, unique)
225
+ image : redis/redisinsight:latest # repo/image
226
+ imagePullPolicy : IfNotPresent # Always pull image
227
227
env :
228
228
# If there's a service named 'redisinsight' that exposes the
229
229
# deployment, we manually set `RI_APP_HOST` and
@@ -234,18 +234,18 @@ spec:
234
234
- name : RI_APP_PORT
235
235
value : " 5540"
236
236
volumeMounts :
237
- - name : redisinsight # Pod volumes to mount into the container's filesystem. Cannot be updated.
237
+ - name : redisinsight # Pod volumes to mount into the container's filesystem. Cannot be updated.
238
238
mountPath : /data
239
239
ports :
240
- - containerPort : 5540 # exposed container port and protocol
240
+ - containerPort : 5540 # exposed container port and protocol
241
241
protocol : TCP
242
- livenessProbe :
243
- httpGet :
244
- path : /healthcheck/ # exposed RI endpoint for healthcheck
245
- port : 5540 # exposed container port
246
- initialDelaySeconds : 5 # number of seconds to wait after the container starts to perform liveness probe
247
- periodSeconds : 5 # period in seconds after which liveness probe is performed
248
- failureThreshold : 1 # number of liveness probe failures after which container restarts
242
+ livenessProbe : # Probe to check container health
243
+ httpGet :
244
+ path : /healthcheck/ # exposed RI endpoint for healthcheck
245
+ port : 5540 # exposed container port
246
+ initialDelaySeconds : 5 # number of seconds to wait after the container starts to perform liveness probe
247
+ periodSeconds : 5 # period in seconds after which liveness probe is performed
248
+ failureThreshold : 1 # number of liveness probe failures after which container restarts
249
249
volumes :
250
250
- name : redisinsight
251
251
emptyDir : {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
0 commit comments