apiVersion: apps/v1 kind: Deployment metadata: name: redisinsight #deployment name labels: app: redisinsight #deployment label spec: replicas: 1 #a single replica pod 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: containers: - name: redisinsight #Container name (DNS_LABEL, unique) image: redislabs/redisinsight #repo/image imagePullPolicy: Always #Always pull image volumeMounts: - name: db #Pod volumes to mount into the container's filesystem. Cannot be updated. mountPath: /db ports: - containerPort: 8001 #exposed conainer port and protocol protocol: TCP volumes: - name: db emptyDir: {} # node-ephemeral volume https://kubernetes.io/docs/concepts/storage/volumes/#emptydir