diff --git a/production/helm/loki/templates/deployment.yaml b/production/helm/loki/templates/deployment.yaml index 86e46c014a0c4d8f9bd5e66d48e714683bcc5a47..80eaa6f759ece7d96f61d8fa0fac23183334cdbe 100644 --- a/production/helm/loki/templates/deployment.yaml +++ b/production/helm/loki/templates/deployment.yaml @@ -27,6 +27,9 @@ spec: app: {{ template "loki.name" . }} name: {{ template "loki.name" . }} release: {{ .Release.Name }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- with .Values.podAnnotations }} diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 94e3d7e2949c4cdd4b846a3d1c713aabeff6244a..c4450402736d26d174a127ab491b3be1936dc79a 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -91,6 +91,9 @@ persistence: # subPath: "" # existingClaim: +## Pod Labels +podLabels: {} + ## Pod Annotations podAnnotations: {} # prometheus.io/scrape: "true" diff --git a/production/helm/promtail/templates/daemonset.yaml b/production/helm/promtail/templates/daemonset.yaml index 4a04c713fc9988aaa5b1c82b31283545a21c89b7..8664ce8e84538a8a63be43398673f4bf382f1516 100644 --- a/production/helm/promtail/templates/daemonset.yaml +++ b/production/helm/promtail/templates/daemonset.yaml @@ -24,6 +24,9 @@ spec: labels: app: {{ template "promtail.name" . }} release: {{ .Release.Name }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} annotations: {{ toYaml .Values.podAnnotations | nindent 8 }} spec: diff --git a/production/helm/promtail/values.yaml b/production/helm/promtail/values.yaml index e6cb8f620ff5c93974e71319bdcc7c384a3f88a5..c58c23ac4a2c93e41d7b2cc5e7b7852aba96f011 100644 --- a/production/helm/promtail/values.yaml +++ b/production/helm/promtail/values.yaml @@ -25,6 +25,9 @@ nameOverride: promtail ## ref: https://kubernetes.io/docs/user-guide/node-selection/ nodeSelector: {} +## Pod Labels +podLabels: {} + podAnnotations: {} # prometheus.io/scrape: "true" # prometheus.io/port: "http-metrics"