deployment.yaml 787 Bytes
Newer Older
Matthias's avatar
Matthias committed
1
2
apiVersion: apps/v1
kind: Deployment
3
metadata:
Matthias's avatar
Matthias committed
4
  name: {{ .Values.deploymentName }}
5
6
  namespace: memobase
  labels:
Matthias's avatar
Matthias committed
7
    jobType: "import-process-deployment"
8
spec:
Matthias's avatar
Matthias committed
9
10
11
12
  selector:
    matchLabels:
      app: {{ .Values.deploymentName }}
  replicas: 1
13
  template:
Matthias's avatar
Matthias committed
14
15
16
17
    metadata:
      labels:
        app: {{ .Values.deploymentName }}
        tier: import-process
18
    spec:
Matthias's avatar
Matthias committed
19
      restartPolicy: Always
20
      containers:
Lionel Walter's avatar
Lionel Walter committed
21
      - name: "{{ .Values.processId }}-{{ .Values.jobName }}"
22
23
24
25
26
27
        image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
        envFrom:
        - secretRef:
            name: "{{ .Values.sftpConfigs }}"
        - configMapRef:
            name: "{{ .Values.kafkaConfigs }}"
Matthias's avatar
Matthias committed
28
        - configMapRef:
Matthias's avatar
Matthias committed
29
            name: "{{ .Values.deploymentName }}-config"