sigs.k8s.io/cluster-api-provider-azure@v1.14.3/hack/observability/jaeger/chart/templates/statefulset.yaml (about)

     1  {{- if .Values.enabled }}
     2  apiVersion: apps/v1
     3  kind: StatefulSet
     4  metadata:
     5    name: {{ include "jaeger-all-in-one.fullname" . }}
     6    namespace: {{ .Release.Namespace }}
     7    labels:
     8      {{- include "jaeger-all-in-one.labels" . | nindent 4 }}
     9  spec:
    10    serviceName: {{ include "jaeger-all-in-one.fullname" . }}-headless
    11    replicas: {{ .Values.replicaCount }}
    12    selector:
    13      matchLabels:
    14        {{- include "jaeger-all-in-one.selectorLabels" . | nindent 6 }}
    15    template:
    16      metadata:
    17        labels:
    18          {{- include "jaeger-all-in-one.selectorLabels" . | nindent 8 }}
    19      {{- with .Values.podAnnotations }}
    20        annotations:
    21          {{- toYaml . | nindent 8 }}
    22      {{- end }}
    23      spec:
    24        terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
    25      {{- with .Values.imagePullSecrets }}
    26        imagePullSecrets:
    27          {{- toYaml . | nindent 8 }}
    28      {{- end }}
    29        serviceAccountName: {{ include "jaeger-all-in-one.serviceAccountName" . }}
    30        securityContext:
    31          {{- toYaml .Values.podSecurityContext | nindent 8 }}
    32        {{- if .Values.volume.enabled }}
    33        volumes:
    34          - name: jaeger-volume
    35            persistentVolumeClaim:
    36              claimName: {{ include "jaeger-all-in-one.fullname" . }}
    37        {{- end }}
    38        containers:
    39          - name: {{ .Chart.Name }}
    40            securityContext:
    41              {{- toYaml .Values.securityContext | nindent 12 }}
    42            image: "{{ .Values.image.repository }}:{{ include "jaeger-all-in-one.jaegerVersion" . }}"
    43            imagePullPolicy: {{ .Values.image.pullPolicy }}
    44            ports:
    45              - name: udp-com-thr
    46                containerPort: 6831
    47                protocol: UDP
    48              - name: udp-bin-thr
    49                containerPort: 6832
    50                protocol: UDP
    51              - name: udp-bin-thr-o
    52                containerPort: 5775
    53                protocol: UDP
    54              - name: http-configs
    55                containerPort: 5778
    56                protocol: TCP
    57              {{- if .Values.enableHttpOpenTelemetryCollector }}
    58              - name: http-otlp-grpc
    59                containerPort: 4317
    60                protocol: TCP
    61              - name: http-otlp
    62                containerPort: 4318
    63                protocol: TCP
    64              {{- end }}
    65              - name: http-ui
    66                containerPort: 16686
    67                protocol: TCP
    68              - name: grpc-proto
    69                containerPort: 14250
    70                protocol: TCP
    71              - name: http-bin-thr
    72                containerPort: 14268
    73                protocol: TCP
    74              - name: http-admin
    75                containerPort: 14269
    76                protocol: TCP
    77              {{- if .Values.enableHttpZipkinCollector }}
    78              - name: http-zipkin
    79                containerPort: 9411
    80                protocol: TCP
    81              {{- end }}
    82            {{- if .Values.volume.enabled }}
    83            volumeMounts:
    84              - mountPath: "/badger"
    85                name: jaeger-volume
    86            {{- end }}
    87            livenessProbe:
    88              httpGet:
    89                path: {{ .Values.healthCheckUrl | quote }}
    90                port: http-admin
    91            readinessProbe:
    92              httpGet:
    93                path: {{ .Values.healthCheckUrl | quote }}
    94                port: http-admin
    95            resources:
    96              {{- toYaml .Values.resources | nindent 12 }}
    97            env:
    98            {{- range $key, $value := .Values.environmentVariables }}
    99            - name: {{ $key }}
   100              value: {{ $value | quote }}
   101            {{- end }}
   102            {{- if .Values.enableHttpOpenTelemetryCollector }}
   103            - name: COLLECTOR_OTLP_ENABLED
   104              value: "true"
   105            {{- end }}
   106            {{- if .Values.enableHttpZipkinCollector }}
   107            - name: COLLECTOR_ZIPKIN_HOST_PORT
   108              value: ":9411"
   109            {{- end }}
   110        {{- with .Values.nodeSelector }}
   111        nodeSelector:
   112          {{- toYaml . | nindent 8 }}
   113        {{- end }}
   114      {{- with .Values.affinity }}
   115        affinity:
   116          {{- toYaml . | nindent 8 }}
   117      {{- end }}
   118      {{- with .Values.tolerations }}
   119        tolerations:
   120          {{- toYaml . | nindent 8 }}
   121      {{- end }}
   122  {{- end }}