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.04 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
3
4
5
6
7
8
9
10
11
apiVersion: apps/v1
kind: Deployment
metadata:
  name: "{{ .Values.deploymentName }}-deployment"
  namespace: memobase
  labels:
    app: "{{ .Values.deploymentName }}-deployment"
spec:
  selector:
    matchLabels:
      app: "{{ .Values.deploymentName }}-deployment"
12
  replicas: 3
Jonas Waeber's avatar
Jonas Waeber committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  template:
    metadata:
      labels:
        app: "{{ .Values.deploymentName }}-deployment"
        tier: post-processing
    spec:
      containers:
        - name: "{{ .Values.deploymentName }}-container"
          image: "{{.Values.registry}}/{{ .Values.image }}:{{ .Values.tag }}"
          imagePullPolicy: Always
          envFrom:
          - configMapRef:
              name: "{{ .Values.kafkaConfigs }}"
          - configMapRef:
Jonas Waeber's avatar
Jonas Waeber committed
27
              name: "{{ .Values.deploymentName}}-app-config"
28
29
30
31
32
33
34
          volumeMounts:
          - name: instituion-type-labels
            mountPath: "/configs/institution_types/"
      volumes:
        - name: instituion-type-labels
          configMap:
            name: "{{ .Values.instutionTypeLabels }}"
Jonas Waeber's avatar
Jonas Waeber committed
35
      restartPolicy: Always