deployment-drupal.yml 848 Bytes
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
1
2
3
apiVersion: apps/v1
kind: Deployment
metadata:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
4
  name: "{{ .Values.deploymentName }}-drupal-deployment"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
5
6
  namespace: memobase
  labels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
7
    app: "{{ .Values.deploymentName }}-drupal-deployment"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
8
9
10
spec:
  selector:
    matchLabels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
11
      app: "{{ .Values.deploymentName }}-drupal-deployment"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
12
13
14
15
  replicas: 1
  template:
    metadata:
      labels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
16
        app: "{{ .Values.deploymentName }}-drupal-deployment"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
17
18
19
        tier: post-processing
    spec:
      containers:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
20
        - name: "{{ .Values.deploymentName }}-drupal-container"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
21
22
23
24
25
26
27
28
          image: "{{.Values.registry}}/{{ .Values.image }}:{{ .Values.tag }}"
          imagePullPolicy: Always
          envFrom:
          - configMapRef:
              name: "{{ .Values.kafkaConfigs }}"
          - configMapRef:
              name: "{{ .Values.deploymentName}}-app-config"
      restartPolicy: Always