github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/generate/infra/fabrikate-jaeger/helm_repos/jaeger/templates/agent-ds.yaml (about) 1 {{- if .Values.agent.enabled -}} 2 apiVersion: apps/v1 3 kind: DaemonSet 4 metadata: 5 name: {{ template "jaeger.agent.name" . }} 6 labels: 7 app.kubernetes.io/name: {{ include "jaeger.name" . }} 8 helm.sh/chart: {{ include "jaeger.chart" . }} 9 app.kubernetes.io/instance: {{ .Release.Name }} 10 app.kubernetes.io/managed-by: {{ .Release.Service }} 11 app.kubernetes.io/component: agent 12 {{- if .Values.agent.annotations }} 13 annotations: 14 {{ toYaml .Values.agent.annotations | indent 4 }} 15 {{- end }} 16 spec: 17 selector: 18 matchLabels: 19 app.kubernetes.io/name: {{ include "jaeger.name" . }} 20 app.kubernetes.io/instance: {{ .Release.Name }} 21 app.kubernetes.io/component: agent 22 template: 23 metadata: 24 {{- if .Values.agent.podAnnotations }} 25 annotations: 26 {{ toYaml .Values.agent.podAnnotations | indent 8 }} 27 {{- end }} 28 labels: 29 app.kubernetes.io/name: {{ include "jaeger.name" . }} 30 app.kubernetes.io/instance: {{ .Release.Name }} 31 app.kubernetes.io/component: agent 32 {{- if .Values.agent.podLabels }} 33 {{ toYaml .Values.agent.podLabels | indent 8 }} 34 {{- end }} 35 spec: 36 {{- if .Values.agent.useHostNetwork }} 37 hostNetwork: true 38 {{- end }} 39 dnsPolicy: {{ .Values.agent.dnsPolicy }} 40 nodeSelector: 41 {{ toYaml .Values.agent.nodeSelector | indent 8 }} 42 {{- if .Values.agent.tolerations }} 43 tolerations: 44 {{ toYaml .Values.agent.tolerations | indent 8 }} 45 {{- end }} 46 serviceAccountName: {{ template "jaeger.agent.serviceAccountName" . }} 47 containers: 48 - name: {{ template "jaeger.agent.name" . }} 49 image: {{ .Values.agent.image }}:{{ .Values.tag }} 50 imagePullPolicy: {{ .Values.agent.pullPolicy }} 51 env: 52 - name: REPORTER_GRPC_HOST_PORT 53 value: {{ include "jaeger.collector.name" . }}:{{ .Values.collector.service.grpcPort }} 54 {{- range $key, $value := .Values.agent.cmdlineParams }} 55 - name: {{ $key | replace "." "_" | replace "-" "_" | upper | quote }} 56 value: {{ $value }} 57 {{- end }} 58 ports: 59 - name: zipkin-compact 60 containerPort: {{ .Values.agent.service.zipkinThriftPort }} 61 protocol: UDP 62 {{- if .Values.agent.daemonset.useHostPort }} 63 hostPort: {{ .Values.agent.service.zipkinThriftPort }} 64 {{- end }} 65 - name: jaeger-compact 66 containerPort: {{ .Values.agent.service.compactPort }} 67 protocol: UDP 68 {{- if .Values.agent.daemonset.useHostPort }} 69 hostPort: {{ .Values.agent.service.compactPort }} 70 {{- end }} 71 - name: jaeger-binary 72 containerPort: {{ .Values.agent.service.binaryPort }} 73 protocol: UDP 74 {{- if .Values.agent.daemonset.useHostPort }} 75 hostPort: {{ .Values.agent.service.binaryPort }} 76 {{- end }} 77 - name: http 78 containerPort: {{ .Values.agent.service.samplingPort }} 79 protocol: TCP 80 {{- if .Values.agent.daemonset.useHostPort }} 81 hostPort: {{ .Values.agent.service.samplingPort }} 82 {{- end }} 83 - name: admin 84 containerPort: 14271 85 protocol: TCP 86 livenessProbe: 87 httpGet: 88 path: / 89 port: admin 90 readinessProbe: 91 httpGet: 92 path: / 93 port: admin 94 resources: 95 {{ toYaml .Values.agent.resources | indent 10 }} 96 {{- end -}}