deployment.yaml 1.07 KB
Newer Older
Matthias's avatar
Matthias committed
1
2
3
apiVersion: apps/v1
kind: Deployment
metadata:
4
  name: {{ .Values.deploymentName }}
Matthias's avatar
Matthias committed
5
6
  namespace: memobase
  labels:
7
    app: {{ .Values.deploymentName }}-app
Matthias's avatar
Matthias committed
8
9
10
spec:
  selector:
    matchLabels:
11
      app: {{ .Values.deploymentName }}-app
Matthias's avatar
Matthias committed
12
13
14
15
  replicas: 1
  template:
    metadata:
      labels:
16
17
        app: {{ .Values.deploymentName }}-app
        tier: import-process #FIXME: web?
Matthias's avatar
Matthias committed
18
19
    spec:
      containers:
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
        - name: "{{ .Values.deploymentName }}-container"
          image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
          imagePullPolicy: Always
          resources:
            requests:
              cpu: "0.5"
              memory: "128Mi"
            limits:
              cpu: "1"
              memory: "1Gi"
          envFrom:
          - secretRef:
              name: "{{ .Values.sftpConfigs }}"
          - secretRef:
              name: "{{ .Values.fedoraConfigs }}"
          - configMapRef:
              name: "{{ .Values.kafkaConfigs }}"
          - configMapRef:
              name: "{{ .Values.deploymentName }}-config"
      restartPolicy: Always