"...charts/log-aggregator-linux/jmayer/system-charts" did not exist on "ba4a52ae24e56fdc1d7fdc3959167c633a6205da"
daemonset.yaml 1.72 KB
Newer Older
shanewxy's avatar
shanewxy 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
apiVersion: {{ template "daemonset_api_version" . }}
kind: DaemonSet
metadata:
  name: {{ template "log-aggregator.fullname" . }}-linux
  labels:
    app: {{ template "log-aggregator.name" . }}
    chart: {{ template "log-aggregator.version" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
{{- if .Values.labels }}
{{ toYaml .Values.labels | indent 4 }}
{{- end }}
spec:
{{- if .Values.updateStrategy }}
  updateStrategy:
{{ toYaml .Values.updateStrategy | indent 4 }}
{{- end }}
  selector:
    matchLabels:
      app: {{ template "log-aggregator.name" . }}
      release: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app: {{ template "log-aggregator.name" . }}
        chart: {{ template "log-aggregator.version" . }}
        release: {{ .Release.Name }}
    spec:
      serviceAccountName: {{ template "log-aggregator.fullname" . }}
      containers:
      - name: log-aggregator
        image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}
        imagePullPolicy: "{{ .Values.image.pullPolicy }}"
        volumeMounts:
        - name: flexvolume-driver
          mountPath: /flexmnt
{{- if .Values.env }}
        env:
{{ toYaml .Values.env | indent 10 }}
{{- end }}
        resources:
{{ toYaml .Values.resources | indent 10 }}
      terminationGracePeriodSeconds: 10
      nodeSelector:
{{- include "linux-node-selector" . | nindent 8 }}
    {{- if .Values.nodeSelector }}
{{ toYaml .Values.nodeSelector | indent 8 }}
    {{- end }}
      tolerations:
    {{- if .Values.tolerations }}
{{ toYaml .Values.tolerations | indent 8 }}
    {{- end }}
      volumes:
      - name: flexvolume-driver
        hostPath:
          path: {{ .Values.flexVolumeDir }}