github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/jaegertracing/jaeger-operator/templates/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{ include "jaeger-operator.fullname" . }}
     5    namespace: {{ .Release.Namespace }}
     6    labels:
     7  {{ include "jaeger-operator.labels" . | indent 4 }}
     8  {{- with .Values.extraLabels }}
     9  {{ . | toYaml | indent 4 }}
    10  {{- end }}
    11  spec:
    12    replicas: 1
    13    selector:
    14      matchLabels:
    15  {{ include "jaeger-operator.labels" . | indent 6 }}
    16    template:
    17      metadata:
    18        name: {{ include "jaeger-operator.fullname" . }}
    19        labels:
    20  {{ include "jaeger-operator.labels" . | indent 8 }}
    21  {{- with .Values.extraLabels }}
    22  {{ . | toYaml | indent 8 }}
    23  {{- end }}
    24      spec:
    25        {{- if .Values.serviceAccount.create }}
    26        serviceAccountName: {{ include "jaeger-operator.serviceAccountName" . }}
    27        {{- end }}
    28        {{- with .Values.securityContext }}
    29        securityContext:
    30  {{ toYaml . | indent 8 }}
    31        {{- end }}
    32        {{- if .Values.priorityClassName }}
    33        priorityClassName: {{ .Values.priorityClassName | quote }}
    34        {{- end }}
    35        {{- if and .Values.image.imagePullSecrets (not .Values.serviceAccount.create ) }}
    36        imagePullSecrets:
    37        {{- range .Values.image.imagePullSecrets }}
    38          - name: {{ . }}
    39        {{- end }}
    40        {{- end }}
    41        {{- if .Values.hostNetwork }}
    42        hostNetwork: {{ .Values.hostNetwork }}
    43        {{- end }}
    44        containers:
    45          - name: {{ include "jaeger-operator.fullname" . }}
    46            image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    47            imagePullPolicy: {{ .Values.image.pullPolicy }}
    48            ports:
    49            - containerPort: {{ .Values.metricsPort }}
    50              name: metrics
    51            - containerPort: {{ .Values.webhooks.port }}
    52              name: webhook-server
    53              protocol: TCP  
    54            volumeMounts:
    55            - mountPath: /tmp/k8s-webhook-server/serving-certs
    56              name: cert
    57              readOnly: true
    58            args: ["start"]
    59            env:
    60              - name: WATCH_NAMESPACE
    61                {{- if .Values.rbac.clusterRole }}
    62                value: ""
    63                {{- else }}
    64                valueFrom:
    65                  fieldRef:
    66                    fieldPath: metadata.namespace
    67                {{- end }}
    68              - name: POD_NAME
    69                valueFrom:
    70                  fieldRef:
    71                    fieldPath: metadata.name
    72              - name: POD_NAMESPACE
    73                valueFrom:
    74                  fieldRef:
    75                    fieldPath: metadata.namespace
    76              - name: OPERATOR_NAME
    77                value: {{ include "jaeger-operator.fullname" . | quote }}
    78              {{- if .Values.extraEnv }}
    79                {{- toYaml .Values.extraEnv | nindent 12 }}
    80              {{- end }}
    81            resources:
    82  {{ toYaml .Values.resources | indent 12 }}
    83            securityContext:
    84  {{ toYaml .Values.containerSecurityContext | indent 12 }}
    85        volumes:
    86        - name: cert
    87          secret:
    88            defaultMode: 420
    89            secretName: {{ default "jaeger-operator-service-cert" .Values.certs.certificate.secretName }}
    90      {{- with .Values.nodeSelector }}
    91        nodeSelector:
    92  {{ toYaml . | indent 8 }}
    93      {{- end }}
    94      {{- with .Values.affinity }}
    95        affinity:
    96  {{ toYaml . | indent 8 }}
    97      {{- end }}
    98      {{- with .Values.tolerations }}
    99        tolerations:
   100  {{ toYaml . | indent 8 }}
   101      {{- end }}