github.com/replicatedhq/ship@v0.55.0/integration/failing/init/jaeger-helm/expected/.ship/upstream/templates/query-deploy.yaml (about)

     1  {{- if .Values.query.enabled -}}
     2  apiVersion: extensions/v1beta1
     3  kind: Deployment
     4  metadata:
     5    name: {{ template "jaeger.query.name" . }}
     6    labels:
     7      app: {{ template "jaeger.name" . }}
     8      jaeger-infra: query-deployment
     9      chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    10      component: query
    11      heritage: {{ .Release.Service }}
    12      release: {{ .Release.Name }}
    13  {{- if .Values.query.annotations }}
    14    annotations:
    15  {{ toYaml .Values.query.annotations | indent 4 }}
    16  {{- end }}
    17  spec:
    18    replicas: {{ .Values.query.replicaCount }}
    19    strategy:
    20      type: Recreate
    21    template:
    22      metadata:
    23  {{- if .Values.query.podAnnotations }}
    24        annotations:
    25  {{ toYaml .Values.query.podAnnotations | indent 8 }}
    26  {{- end }}
    27        labels:
    28          app: {{ template "jaeger.name" . }}
    29          component: query
    30          release: {{ .Release.Name }}
    31          jaeger-infra: query-pod
    32  {{- if .Values.query.podLabels }}
    33  {{ toYaml .Values.query.podLabels | indent 8 }}
    34  {{- end }}
    35      spec:
    36        nodeSelector:
    37  {{ toYaml .Values.query.nodeSelector | indent 8 }}
    38  {{- if .Values.query.tolerations }}
    39        tolerations:
    40  {{ toYaml .Values.query.tolerations | indent 8 }}
    41  {{- end }}
    42        containers:
    43        - name: {{ template "jaeger.query.name" . }}
    44          image: {{ .Values.query.image }}:{{ .Values.tag }}
    45          imagePullPolicy: {{ .Values.query.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: QUERY_PORT
    87              valueFrom:
    88                configMapKeyRef:
    89                  name: {{ template "jaeger.fullname" . }}
    90                  key: query.port
    91            - name: QUERY_HEALTH_CHECK_HTTP_PORT
    92              valueFrom:
    93                configMapKeyRef:
    94                  name: {{ template "jaeger.fullname" . }}
    95                  key: query.health-check-http-port
    96          ports:
    97          - containerPort: {{ .Values.query.service.targetPort }}
    98            protocol: TCP
    99          resources:
   100  {{ toYaml .Values.query.resources | indent 10 }}
   101          readinessProbe:
   102            httpGet:
   103              path: /
   104              port: {{ .Values.query.healthCheckPort }}
   105        dnsPolicy: {{ .Values.query.dnsPolicy }}
   106        restartPolicy: Always
   107  {{- end -}}