--- apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "harbor.fullname" . }}-redis labels: {{ include "harbor.labels" . | indent 4 }} app: harbor-redis version: {{ .Values.redis.image.tag }} spec: replicas: 1 selector: matchLabels: {{ include "harbor.labels" . | indent 6 }} app: harbor-redis template: metadata: labels: {{ include "harbor.labels" . | indent 8 }} app: harbor-redis version: {{ .Values.redis.image.tag }} spec: containers: - name: redis image: {{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }} imagePullPolicy: {{ .Values.redis.image.pullPolicy }} args: ["--save","''","--appendonly","no"] ports: - name: redis containerPort: 6379 volumeMounts: - name: etc-localtime mountPath: /etc/localtime volumes: - name: etc-localtime hostPath: path: /etc/localtime