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

     1  {{- if and .Values.compactor.enabled (not .Values.compactor.cronJob.enabled) }}
     2  apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
     3  kind: Deployment
     4  metadata:
     5    name: {{ include "common.names.fullname" . }}-compactor
     6    namespace: {{ .Release.Namespace | quote }}
     7    labels: {{- include "common.labels.standard" . | nindent 4 }}
     8      app.kubernetes.io/component: compactor
     9      {{- if .Values.commonLabels }}
    10      {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
    11      {{- end }}
    12    {{- if .Values.commonAnnotations }}
    13    annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
    14    {{- end }}
    15  spec:
    16    replicas: 1
    17    {{- if .Values.compactor.updateStrategy }}
    18    strategy: {{- toYaml .Values.compactor.updateStrategy | nindent 4 }}
    19    {{- end }}
    20    selector:
    21      matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
    22        app.kubernetes.io/component: compactor
    23    template:
    24      {{- include "thanos.compactor.podTemplate" . | nindent 4 }}
    25  {{- end }}