Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

deployment.yaml 1.06 KB
Newer Older
Matthias's avatar
Matthias committed
1
2
3
4
apiVersion: apps/v1
kind: Deployment

metadata:
5
  name: "{{ .Values.deploymentName }}-deployment"
Matthias's avatar
Matthias committed
6
7
  namespace: memobase
  labels:
Jonas Waeber's avatar
Jonas Waeber committed
8
    app: {{ .Values.deploymentName }}
Matthias's avatar
Matthias committed
9
10
11
12
spec:
  selector:
    matchLabels:
      app: {{ .Values.deploymentName }}
Jonas Waeber's avatar
Jonas Waeber committed
13
  replicas: {{ .Values.k8sReplicas }}
Matthias's avatar
Matthias committed
14
15
16
17
18
  template:
    metadata:
      labels:
        app: {{ .Values.deploymentName }}
        tier: import-process
Jonas Waeber's avatar
Jonas Waeber committed
19
        environment: {{.Values.k8sEnvironment }}
Matthias's avatar
Matthias committed
20
21
22
23
24
25
    spec:
      restartPolicy: Always
      containers:
      - name: "{{ .Values.deploymentName }}-container"
        image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
        imagePullPolicy: Always
Jonas Waeber's avatar
Jonas Waeber committed
26
27
28
29
30
31
32
        resources:
          requests:
            cpu: "{{ .Values.k8sRequestsCpu }}"
            memory: "{{ .Values.k8sRequestsMemory }}"
          limits:
            cpu: "{{ .Values.k8sLimitsCpu }}"
            memory: "{{ .Values.k8sLimitsMemory }}"
Matthias's avatar
Matthias committed
33
34
35
36
37
        envFrom:
        - configMapRef:
            name: "{{ .Values.kafkaConfigs }}"
        - configMapRef:
            name: "{{ .Values.deploymentName }}-config"