kind: Deployment apiVersion: apps/v1 metadata: name: usma-api namespace: {{ .Release.Namespace }} labels: {{ include "usma-api.labels" . | indent 4 }} app: usma-api versoin: {{ .Values.usmaApi.image.tag }} spec: replicas: 1 selector: matchLabels: app: usma-api template: metadata: labels: {{ include "usma-api.labels" . | indent 8 }} app: usma-api version: {{ .Values.usmaApi.image.tag }} spec: volumes: - name: localtime hostPath: path: /etc/localtime type: '' - name: data-usma-log persistentVolumeClaim: claimName: data-usma-log containers: - name: usma-api {{- if contains "/" .Values.usmaApi.image.repository }} image: "{{ .Values.usmaApi.image.repository }}:{{ .Values.usmaApi.image.tag }}{{ template "beagle.imageArch" . }}" {{- else }} image: "{{ .Values.global.hub }}/{{ .Values.usmaApi.image.repository }}:{{ .Values.usmaApi.image.tag }}{{ template "beagle.imageArch" . }}" {{- end }} imagePullPolicy: "{{ .Values.global.imagePullPolicy }}" ports: - name: "usma-api" containerPort: 8080 protocol: "TCP" envFrom: - configMapRef: name: "usma" volumeMounts: - name: localtime mountPath: /etc/localtime - name: data-usma-log mountPath: "/app/log"