Skip to content

Commit 344f6da

Browse files
authored
DEV: correct Redis Insight on K8s instructions (#1023)
1 parent 048c021 commit 344f6da

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

content/operate/redisinsight/install/install-on-k8s.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,23 +207,23 @@ deployment in a K8s cluster.
207207
apiVersion: apps/v1
208208
kind: Deployment
209209
metadata:
210-
name: redisinsight #deployment name
210+
name: redisinsight # deployment name
211211
labels:
212-
app: redisinsight #deployment label
212+
app: redisinsight # deployment label
213213
spec:
214-
replicas: 1 #a single replica pod
214+
replicas: 1 # a single replica pod
215215
selector:
216216
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
219219
metadata:
220220
labels:
221-
app: redisinsight #label for pod/s
221+
app: redisinsight # label for pod/s
222222
spec:
223223
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
227227
env:
228228
# If there's a service named 'redisinsight' that exposes the
229229
# deployment, we manually set `RI_APP_HOST` and
@@ -234,18 +234,18 @@ spec:
234234
- name: RI_APP_PORT
235235
value: "5540"
236236
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.
238238
mountPath: /data
239239
ports:
240-
- containerPort: 5540 #exposed container port and protocol
240+
- containerPort: 5540 # exposed container port and protocol
241241
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
249249
volumes:
250250
- name: redisinsight
251251
emptyDir: {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

0 commit comments

Comments
 (0)