deployment.yaml 1.01 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: apps/v1
kind: Deployment
metadata:
  name: "{{ .Values.deploymentName }}-deployment"
  namespace: memobase
  labels:
    app: "{{ .Values.deploymentName }}-deployment"
spec:
  selector:
    matchLabels:
      app: "{{ .Values.deploymentName }}-deployment"
  replicas: 1
  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:
              name: "{{ .Values.deploymentName}}-app-config"
          volumeMounts:
            - name: config-volume
              mountPath: "/configs/mappings/"
      volumes:
        - name: config-volume
          configMap:
            name: "{{ .Values.configMapName }}"
      restartPolicy: Always