apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "fcm.fullname" . }} labels: app: {{ template "fcm.name" . }} chart: {{ template "fcm.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ template "fcm.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "fcm.name" . }} release: {{ .Release.Name }} annotations: prometheus.io/scrape: "true" prometheus.io/port: "80" spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: /metrics port: http env: - name: PORT value: "80" - name: RUST_BACKTRACE value: "1" - name: CONFIG value: "/etc/xorc-notifications/fcm.toml" - name: LOG_FORMAT value: "json" - name: RUST_ENV value: "{{ .Values.system.environment }}" volumeMounts: - name: config mountPath: /etc/xorc-notifications/fcm.toml subPath: fcm.toml readinessProbe: httpGet: path: /metrics port: http resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: config configMap: name: {{ template "fcm.fullname" . }}