Redis Insight 배포 #
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: redisinsight #deployment name
5 labels:
6 app: redisinsight #deployment label
7spec:
8 replicas: 1 #a single replica pod
9 selector:
10 matchLabels:
11 app: redisinsight #which pods is the deployment managing, as defined by the pod template
12 template: #pod template
13 metadata:
14 labels:
15 app: redisinsight #label for pod/s
16 spec:
17 containers:
18 - name: redisinsight #Container name (DNS_LABEL, unique)
19 image: redis/redisinsight:latest #repo/image
20 imagePullPolicy: IfNotPresent #Installs the latest Redis Insight version
21 volumeMounts:
22 - name: redisinsight #Pod volumes to mount into the container's filesystem. Cannot be updated.
23 mountPath: /data
24 ports:
25 - containerPort: 5540 #exposed container port and protocol
26 protocol: TCP
27 volumes:
28 - name: redisinsight
29 emptyDir: {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydirRedis Insight 설치 참고
- https://redis.io/docs/latest/operate/redisinsight/install/install-on-k8s {: .prompt-info }
Redis Insight Configuration Settings 참고
- https://redis.io/docs/latest/operate/redisinsight/configuration {: .prompt-info }
Advertisement