Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update K8s installation manifests for RedisInsight #3159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions content/ri/installing/install-k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8001
targetPort: 5540
selector:
app: redisinsight
---
Expand All @@ -62,13 +62,13 @@ spec:
image: redislabs/redisinsight:latest #repo/image
imagePullPolicy: IfNotPresent #Always pull image
volumeMounts:
- name: db #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /db
- name: data #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /data
ports:
- containerPort: 8001 #exposed container port and protocol
- containerPort: 5540 #exposed container port and protocol
protocol: TCP
volumes:
- name: db
- name: data
emptyDir: {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
```

Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8001
targetPort: 5540
selector:
app: redisinsight
---
Expand Down Expand Up @@ -162,7 +162,7 @@ spec:
app: redisinsight #label for pod/s
spec:
volumes:
- name: db
- name: data
persistentVolumeClaim:
claimName: redisinsight-pv-claim
initContainers:
Expand All @@ -172,22 +172,22 @@ spec:
- /bin/sh
- '-c'
- |
chown -R 1001 /db
chown -R 1001 /data
resources: {}
volumeMounts:
- name: db
mountPath: /db
- name: data
mountPath: /data
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
containers:
- name: redisinsight #Container name (DNS_LABEL, unique)
image: redislabs/redisinsight:latest #repo/image
imagePullPolicy: IfNotPresent #Always pull image
volumeMounts:
- name: db #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /db
- name: data #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /data
ports:
- containerPort: 8001 #exposed container port and protocol
- containerPort: 5540 #exposed container port and protocol
protocol: TCP
```

Expand Down Expand Up @@ -233,22 +233,22 @@ spec:
- name: REDISINSIGHT_HOST
value: "0.0.0.0"
- name: REDISINSIGHT_PORT
value: "8001"
value: "5540"
volumeMounts:
- name: db #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /db
- name: data #Pod volumes to mount into the container's filesystem. Cannot be updated.
mountPath: /data
ports:
- containerPort: 8001 #exposed conainer port and protocol
- containerPort: 5540 #exposed conainer port and protocol
protocol: TCP
livenessProbe:
httpGet:
path : /healthcheck/ # exposed RI endpoint for healthcheck
port: 8001 # exposed container port
port: 5540 # exposed container port
initialDelaySeconds: 5 # number of seconds to wait after the container starts to perform liveness probe
periodSeconds: 5 # period in seconds after which liveness probe is performed
failureThreshold: 1 # number of liveness probe failures after which container restarts
volumes:
- name: db
- name: data
emptyDir: {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
```

Expand All @@ -265,10 +265,10 @@ If the deployment will be exposed by a service whose name is 'redisinsight', set
3. Once the deployment has been successfully applied and the deployment complete, access RedisInsight. This can be accomplished by exposing the deployment as a K8s Service or by using port forwarding, as in the example below:

```sh
kubectl port-forward deployment/redisinsight 8001
kubectl port-forward deployment/redisinsight 5540
```

Open your browser and point to <http://localhost:8001>
Open your browser and point to <http://localhost:5540>

## Helm Chart (Experimental)

Expand Down