kind: Deployment apiVersion: apps/v1 metadata: name: usma-ui namespace: {{ .Release.Namespace }} labels: {{ include "usma-ui.labels" . | indent 4 }} app: usma-ui versoin: {{ .Values.usmaUi.image.tag }} spec: replicas: 1 selector: matchLabels: app: usma-ui template: metadata: labels: {{ include "usma-ui.labels" . | indent 8 }} app: usma-ui version: {{ .Values.usmaUi.image.tag }} spec: volumes: - name: localtime hostPath: path: /etc/localtime type: '' - name: configmap configMap: name: usma-ui items: - key: configmap path: configmap.js containers: - name: usma-ui {{- if contains "/" .Values.usmaUi.image.repository }} image: "{{ .Values.usmaUi.image.repository }}:{{ .Values.usmaUi.image.tag }}{{ template "beagle.imageArch" . }}" {{- else }} image: "{{ .Values.global.hub }}/{{ .Values.usmaUi.image.repository }}:{{ .Values.usmaUi.image.tag }}{{ template "beagle.imageArch" . }}" {{- end }} imagePullPolicy: "{{ .Values.global.imagePullPolicy }}" envFrom: - configMapRef: name: "usma" ports: - containerPort: 8080 protocol: TCP volumeMounts: - name: localtime mountPath: /etc/localtime - name: configmap mountPath: /www/usma/ui/static/config/configmap.js subPath: configmap.js resources: limits: cpu: 0.5 memory: 1Gi requests: cpu: 0.1 memory: 256Mi restartPolicy: Always