github.com/replicatedhq/ship@v0.55.0/integration/failing/init/jaeger-helm/expected/.ship/upstream/templates/agent-ds.yaml (about) 1 {{- if .Values.agent.enabled -}} 2 apiVersion: extensions/v1beta1 3 kind: DaemonSet 4 metadata: 5 name: {{ template "jaeger.agent.name" . }} 6 labels: 7 app: {{ template "jaeger.name" . }} 8 jaeger-infra: agent-daemonset 9 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 10 component: agent 11 heritage: {{ .Release.Service }} 12 release: {{ .Release.Name }} 13 {{- if .Values.agent.annotations }} 14 annotations: 15 {{ toYaml .Values.agent.annotations | indent 4 }} 16 {{- end }} 17 spec: 18 template: 19 metadata: 20 {{- if .Values.agent.podAnnotations }} 21 annotations: 22 {{ toYaml .Values.agent.podAnnotations | indent 8 }} 23 {{- end }} 24 labels: 25 app: {{ template "jaeger.name" . }} 26 component: agent 27 release: {{ .Release.Name }} 28 jaeger-infra: agent-instance 29 {{- if .Values.agent.podLabels }} 30 {{ toYaml .Values.agent.podLabels | indent 8 }} 31 {{- end }} 32 spec: 33 {{- if .Values.agent.useHostNetwork }} 34 hostNetwork: true 35 {{- end }} 36 dnsPolicy: {{ .Values.agent.dnsPolicy }} 37 nodeSelector: 38 {{ toYaml .Values.agent.nodeSelector | indent 8 }} 39 {{- if .Values.agent.tolerations }} 40 tolerations: 41 {{ toYaml .Values.agent.tolerations | indent 8 }} 42 {{- end }} 43 containers: 44 - name: {{ template "jaeger.agent.name" . }} 45 image: {{ .Values.agent.image }}:{{ .Values.tag }} 46 imagePullPolicy: {{ .Values.agent.pullPolicy }} 47 env: 48 - name: COLLECTOR_HOST_PORT 49 valueFrom: 50 configMapKeyRef: 51 name: {{ template "jaeger.fullname" . }} 52 key: collector.host-port 53 {{- range $key, $value := .Values.agent.cmdlineParams }} 54 - name: {{ $key | replace "." "_" | replace "-" "_" | upper | quote }} 55 value: {{ $value }} 56 {{- end }} 57 ports: 58 - containerPort: {{ .Values.agent.service.zipkinThriftPort }} 59 protocol: UDP 60 {{- if .Values.agent.daemonset.useHostPort }} 61 hostPort: {{ .Values.agent.service.zipkinThriftPort }} 62 {{- end }} 63 - containerPort: {{ .Values.agent.service.compactPort }} 64 protocol: UDP 65 {{- if .Values.agent.daemonset.useHostPort }} 66 hostPort: {{ .Values.agent.service.compactPort }} 67 {{- end }} 68 - containerPort: {{ .Values.agent.service.binaryPort }} 69 protocol: UDP 70 {{- if .Values.agent.daemonset.useHostPort }} 71 hostPort: {{ .Values.agent.service.binaryPort }} 72 {{- end }} 73 - containerPort: {{ .Values.agent.service.samplingPort }} 74 protocol: TCP 75 {{- if .Values.agent.daemonset.useHostPort }} 76 hostPort: {{ .Values.agent.service.samplingPort }} 77 {{- end }} 78 resources: 79 {{ toYaml .Values.agent.resources | indent 10 }} 80 {{- end -}}