deployment.yaml 1.24 KB
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:
Jonas Waeber's avatar
Jonas Waeber committed
7
8
9
    app: "{{ .Values.deploymentName }}"
    environment: {{ .Values.k8sEnvironment }}
    group: "documents-import"
10
spec:
Matthias's avatar
Matthias committed
11
12
13
  selector:
    matchLabels:
      app: {{ .Values.deploymentName }}
14
  replicas: {{ .Values.k8sReplicas }}
15
  template:
Matthias's avatar
Matthias committed
16
17
    metadata:
      labels:
Jonas Waeber's avatar
Jonas Waeber committed
18
19
20
        app: "{{ .Values.deploymentName }}"
        environment: {{ .Values.k8sEnvironment }}
        group: "documents-import"
21
    spec:
Matthias's avatar
Matthias committed
22
      restartPolicy: Always
23
      containers:
Jonas Waeber's avatar
Jonas Waeber committed
24
25
26
        - name: "{{ .Values.deploymentName }}-container"
          image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
          imagePullPolicy: Always
27
28
29
30
31
32
33
          resources:
            requests:
              cpu: "{{ .Values.k8sRequestsCpu }}"
              memory: "{{ .Values.k8sRequestsMemory }}"
            limits:
              cpu: "{{ .Values.k8sLimitsCpu }}"
              memory: "{{ .Values.k8sLimitsMemory }}"
Jonas Waeber's avatar
Jonas Waeber committed
34
35
36
37
38
39
40
          envFrom:
            - secretRef:
                name: "{{ .Values.sftpConfigs }}"
            - configMapRef:
                name: "{{ .Values.kafkaConfigs }}"
            - configMapRef:
                name: "{{ .Values.deploymentName }}-config"