github.com/replicatedhq/ship@v0.55.0/integration/failing/init/jaeger-helm/expected/.ship/upstream/templates/collector-deploy.yaml (about) 1 {{- if .Values.collector.enabled -}} 2 apiVersion: extensions/v1beta1 3 kind: Deployment 4 metadata: 5 name: {{ template "jaeger.collector.name" . }} 6 labels: 7 app: {{ template "jaeger.name" . }} 8 jaeger-infra: collector-deployment 9 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 10 component: collector 11 heritage: {{ .Release.Service }} 12 release: {{ .Release.Name }} 13 {{- if .Values.collector.annotations }} 14 annotations: 15 {{ toYaml .Values.collector.annotations | indent 4 }} 16 {{- end }} 17 spec: 18 replicas: {{ .Values.collector.replicaCount }} 19 strategy: 20 type: Recreate 21 template: 22 metadata: 23 {{- if .Values.collector.podAnnotations }} 24 annotations: 25 {{ toYaml .Values.collector.podAnnotations | indent 8 }} 26 {{- end }} 27 labels: 28 app: {{ template "jaeger.name" . }} 29 component: collector 30 release: {{ .Release.Name }} 31 jaeger-infra: collector-pod 32 {{- if .Values.collector.podLabels }} 33 {{ toYaml .Values.collector.podLabels | indent 8 }} 34 {{- end }} 35 spec: 36 nodeSelector: 37 {{ toYaml .Values.collector.nodeSelector | indent 8 }} 38 {{- if .Values.collector.tolerations }} 39 tolerations: 40 {{ toYaml .Values.collector.tolerations | indent 8 }} 41 {{- end }} 42 containers: 43 - name: {{ template "jaeger.collector.name" . }} 44 image: {{ .Values.collector.image }}:{{ .Values.tag }} 45 imagePullPolicy: {{ .Values.collector.pullPolicy }} 46 env: 47 - name: SPAN_STORAGE_TYPE 48 valueFrom: 49 configMapKeyRef: 50 name: {{ template "jaeger.fullname" . }} 51 key: span-storage.type 52 {{- if eq .Values.storage.type "cassandra" }} 53 - name: CASSANDRA_SERVERS 54 valueFrom: 55 configMapKeyRef: 56 name: {{ template "jaeger.fullname" . }} 57 key: cassandra.servers 58 - name: CASSANDRA_PORT 59 valueFrom: 60 configMapKeyRef: 61 name: {{ template "jaeger.fullname" . }} 62 key: cassandra.port 63 - name: CASSANDRA_KEYSPACE 64 valueFrom: 65 configMapKeyRef: 66 name: {{ template "jaeger.fullname" . }} 67 key: cassandra.keyspace 68 {{- end }} 69 {{- if eq .Values.storage.type "elasticsearch" }} 70 - name: ES_PASSWORD 71 valueFrom: 72 configMapKeyRef: 73 name: {{ template "jaeger.fullname" . }} 74 key: es.password 75 - name: ES_SERVER_URLS 76 valueFrom: 77 configMapKeyRef: 78 name: {{ template "jaeger.fullname" . }} 79 key: es.server-urls 80 - name: ES_USERNAME 81 valueFrom: 82 configMapKeyRef: 83 name: {{ template "jaeger.fullname" . }} 84 key: es.username 85 {{- end }} 86 - name: COLLECTOR_PORT 87 valueFrom: 88 configMapKeyRef: 89 name: {{ template "jaeger.fullname" . }} 90 key: collector.port 91 - name: COLLECTOR_HTTP_PORT 92 valueFrom: 93 configMapKeyRef: 94 name: {{ template "jaeger.fullname" . }} 95 key: collector.http-port 96 - name: COLLECTOR_ZIPKIN_HTTP_PORT 97 valueFrom: 98 configMapKeyRef: 99 name: {{ template "jaeger.fullname" . }} 100 key: collector.zipkin.http-port 101 ports: 102 - containerPort: {{ .Values.collector.service.tchannelPort }} 103 name: tchannel 104 protocol: TCP 105 - containerPort: {{ .Values.collector.service.httpPort }} 106 name: http 107 protocol: TCP 108 - containerPort: {{ .Values.collector.service.healthCheckPort }} 109 name: healthcheck 110 protocol: TCP 111 - containerPort: {{ .Values.collector.service.zipkinPort }} 112 name: zipkin 113 protocol: TCP 114 readinessProbe: 115 httpGet: 116 port: healthcheck 117 initialDelaySeconds: 10 118 livenessProbe: 119 httpGet: 120 port: healthcheck 121 initialDelaySeconds: 10 122 resources: 123 {{ toYaml .Values.collector.resources | indent 10 }} 124 dnsPolicy: {{ .Values.collector.dnsPolicy }} 125 restartPolicy: Always 126 {{- end -}}