Tyler Perkins
3e0d464770
All checks were successful
continuous-integration/drone/push Build is passing
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: redisinsight #deployment name
|
|
namespace: redis-system
|
|
labels:
|
|
app: redisinsight #deployment label
|
|
spec:
|
|
replicas: 1 #a single replica pod
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: redisinsight #which pods is the deployment managing, as defined by the pod template
|
|
template: #pod template
|
|
metadata:
|
|
labels:
|
|
app: redisinsight #label for pod/s
|
|
spec:
|
|
volumes:
|
|
- name: db
|
|
persistentVolumeClaim:
|
|
claimName: redisinsight-pvc
|
|
initContainers:
|
|
- name: init
|
|
image: busybox
|
|
command:
|
|
- /bin/sh
|
|
- '-c'
|
|
- |
|
|
chown -R 1001 /db
|
|
resources: {}
|
|
volumeMounts:
|
|
- name: db
|
|
mountPath: /db
|
|
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
|
|
ports:
|
|
- containerPort: 8001 #exposed container port and protocol
|
|
protocol: TCP
|