--- kind: Deployment apiVersion: apps/v1 metadata: name: sms-verify-api namespace: {{ .Release.Namespace }} labels: {{ include "sms-verify-api.labels" . | indent 4 }} app: sms-verify-api versoin: {{ .Values.tag }} spec: replicas: 1 selector: matchLabels: {{ include "sms-verify-api.matchLabels" . | indent 6 }} app: sms-verify-api template: metadata: labels: {{ include "sms-verify-api.labels" . | indent 8 }} app: sms-verify-api version: {{ .Values.tag }} spec: volumes: - name: localtime hostPath: path: /etc/localtime containers: - name: sms-verify-api image: {{ .Values.global.hub }}/{{ .Values.image }}:{{ .Values.tag }} ports: - name: http containerPort: 8080 protocol: TCP livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 50 periodSeconds: 10 timeoutSeconds: 1 successThreshold: 1 resources: {{- toYaml .Values.resources | nindent 12 }} envFrom: - configMapRef: name: "sms" volumeMounts: - name: localtime mountPath: /etc/localtime imagePullPolicy: "Always" restartPolicy: "Always"