Skip to content
Snippets Groups Projects
Commit 7d8b0c83 authored by Sverre Boschman's avatar Sverre Boschman Committed by Cyril Tovena
Browse files

allow additional pod labels (#509)

parent d33722dc
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,9 @@ spec: ...@@ -27,6 +27,9 @@ spec:
app: {{ template "loki.name" . }} app: {{ template "loki.name" . }}
name: {{ template "loki.name" . }} name: {{ template "loki.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations: annotations:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}
......
...@@ -91,6 +91,9 @@ persistence: ...@@ -91,6 +91,9 @@ persistence:
# subPath: "" # subPath: ""
# existingClaim: # existingClaim:
## Pod Labels
podLabels: {}
## Pod Annotations ## Pod Annotations
podAnnotations: {} podAnnotations: {}
# prometheus.io/scrape: "true" # prometheus.io/scrape: "true"
......
...@@ -24,6 +24,9 @@ spec: ...@@ -24,6 +24,9 @@ spec:
labels: labels:
app: {{ template "promtail.name" . }} app: {{ template "promtail.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations: annotations:
{{ toYaml .Values.podAnnotations | nindent 8 }} {{ toYaml .Values.podAnnotations | nindent 8 }}
spec: spec:
......
...@@ -25,6 +25,9 @@ nameOverride: promtail ...@@ -25,6 +25,9 @@ nameOverride: promtail
## ref: https://kubernetes.io/docs/user-guide/node-selection/ ## ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {} nodeSelector: {}
## Pod Labels
podLabels: {}
podAnnotations: {} podAnnotations: {}
# prometheus.io/scrape: "true" # prometheus.io/scrape: "true"
# prometheus.io/port: "http-metrics" # prometheus.io/port: "http-metrics"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment