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