Files
charts/bitnami/thanos/templates/compactor/deployment.yaml
Guillaume Jacquet cae55cff43 [bitnami/thanos] Compactor cronjob (#14865)
* Compactor cronjob

Support running compactor as a cronjob rather an deployment.

Signed-off-by: Guillaume Jacquet <guillaume.jacquet@gmail.com>

* Set default restart policy to `Never`.

Signed-off-by: Guillaume Jacquet <guillaume.jacquet@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Guillaume Jacquet <guillaume.jacquet@gmail.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: corico44 <42420333+corico44@users.noreply.github.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: corico44 <42420333+corico44@users.noreply.github.com>
2023-02-21 11:56:27 +01:00

26 lines
1.1 KiB
YAML

{{- if and .Values.compactor.enabled (not .Values.compactor.cronJob.enabled) }}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ include "common.names.fullname" . }}-compactor
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: compactor
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: 1
{{- if .Values.compactor.updateStrategy }}
strategy: {{- toYaml .Values.compactor.updateStrategy | nindent 4 }}
{{- end }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
app.kubernetes.io/component: compactor
template:
{{- include "thanos.compactor.podTemplate" . | nindent 4 }}
{{- end }}