deployment.yaml 812 Bytes
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
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"
Jonas Waeber's avatar
Jonas Waeber committed
17
        tier: import-process
Jonas Waeber's avatar
Jonas Waeber committed
18
19
20
21
22
23
24
25
26
27
28
    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"
      restartPolicy: Always