aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml
blob: a3b6be3e93a7d0741c989011ba53e49478b5ebf1 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "prom-kafka-writer.fullname" . }}
  labels:
    app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }}
    helm.sh/chart: {{ include "prom-kafka-writer.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }}
      app.kubernetes.io/instance: {{ .Release.Name }}
      app: {{ include "prom-kafka-writer.name" . }}
  template:
    metadata:
      labels:
        app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }}
        app.kubernetes.io/instance: {{ .Release.Name }}
        app: {{ include "prom-kafka-writer.name" . }}
    spec:
      containers:
        - name: {{ .Chart.Name }}
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          ports:
            - name: http
              containerPort: {{ .Values.service.port }}
              protocol: TCP
          env:
            - name: PORT
              value: {{ .Values.service.port | quote }}
          resources:
            {{- toYaml .Values.resources | nindent 12 }}
      {{- with .Values.nodeSelector }}
      nodeSelector:
        {{- toYaml . | nindent 8 }}
      {{- end }}
    {{- with .Values.affinity }}
      affinity:
        {{- toYaml . | nindent 8 }}
    {{- end }}
    {{- with .Values.tolerations }}
      tolerations:
        {{- toYaml . | nindent 8 }}
    {{- end }}