We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! How can I add custom labels to promtail daemonset? In helm chart only predefined labels are available
daemonset.yaml
labels: {{- include "promtail.labels" . | nindent 4 }}
_helpers.tpl
{{/* Common labels */}} {{- define "promtail.labels" -}} helm.sh/chart: {{ include "promtail.chart" . }} {{ include "promtail.selectorLabels" . }} {{- if or .Chart.AppVersion .Values.image.tag }} app.kubernetes.io/version: {{ mustRegexReplaceAllLiteral "@sha.*" .Values.image.tag "" | default .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{/* Selector labels */}} {{- define "promtail.selectorLabels" -}} app.kubernetes.io/name: {{ include "promtail.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! How can I add custom labels to promtail daemonset? In helm chart only predefined labels are available
daemonset.yaml
labels: {{- include "promtail.labels" . | nindent 4 }}
_helpers.tpl
The text was updated successfully, but these errors were encountered: