Add config for optional pod labels (#7594)

pull/8095/head
Nils 2 years ago committed by GitHub
parent 7524c4b3dc
commit c474f265a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 49
      docs/sources/installation/helm/reference.md
  2. 6
      production/helm/loki/templates/gateway/deployment-gateway.yaml
  3. 6
      production/helm/loki/templates/read/statefulset-read.yaml
  4. 6
      production/helm/loki/templates/single-binary/statefulset.yaml
  5. 6
      production/helm/loki/templates/write/statefulset-write.yaml
  6. 14
      production/helm/loki/values.yaml

@ -829,6 +829,15 @@ See values.yaml
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>gateway.podLabels</td>
<td>object</td>
<td>Additional labels for gateway pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -1451,6 +1460,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>loki.podLabels</td>
<td>object</td>
<td>Common labels for all pods</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -2538,6 +2556,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>read.podLabels</td>
<td>object</td>
<td>Additional labels for each `read` pod</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -2570,7 +2597,7 @@ null
<tr>
<td>read.selectorLabels</td>
<td>object</td>
<td>Additional selecto labels for each `read` pod</td>
<td>Additional selector labels for each `read` pod</td>
<td><pre lang="json">
{}
</pre>
@ -2835,6 +2862,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>singleBinary.podLabels</td>
<td>object</td>
<td>Additional labels for each `single binary` pod</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
@ -2867,7 +2903,7 @@ null
<tr>
<td>singleBinary.selectorLabels</td>
<td>object</td>
<td>Additional selecto labels for each `single binary` pod</td>
<td>Additional selector labels for each `single binary` pod</td>
<td><pre lang="json">
{}
</pre>
@ -3149,6 +3185,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>write.podLabels</td>
<td>object</td>
<td>Additional labels for each `write` pod</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>

@ -29,6 +29,12 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- with .Values.loki.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gateway.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- include "loki.gatewaySelectorLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "loki.serviceAccountName" . -}}

@ -41,6 +41,12 @@ spec:
labels:
app.kubernetes.io/part-of: memberlist
{{- include "loki.readSelectorLabels" . | nindent 8 }}
{{- with .Values.loki.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.read.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.read.selectorLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}

@ -31,6 +31,12 @@ spec:
{{- end }}
labels:
{{- include "loki.singleBinarySelectorLabels" . | nindent 8 }}
{{- with .Values.loki.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.singleBinary.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.singleBinary.selectorLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}

@ -32,6 +32,12 @@ spec:
{{- end }}
labels:
{{- include "loki.writeSelectorLabels" . | nindent 8 }}
{{- with .Values.loki.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.write.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.write.selectorLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}

@ -50,6 +50,8 @@ loki:
pullPolicy: IfNotPresent
# -- Common annotations for all pods
podAnnotations: {}
# -- Common labels for all pods
podLabels: {}
# -- The number of old ReplicaSets to retain to allow rollback
revisionHistoryLimit: 10
# -- The SecurityContext for Loki pods
@ -751,6 +753,8 @@ write:
priorityClassName: null
# -- Annotations for write pods
podAnnotations: {}
# -- Additional labels for each `write` pod
podLabels: {}
# -- Additional selector labels for each `write` pod
selectorLabels: {}
# -- Labels for ingestor service
@ -826,7 +830,9 @@ read:
priorityClassName: null
# -- Annotations for read pods
podAnnotations: {}
# -- Additional selecto labels for each `read` pod
# -- Additional labels for each `read` pod
podLabels: {}
# -- Additional selector labels for each `read` pod
selectorLabels: {}
# -- Labels for read service
serviceLabels: {}
@ -901,7 +907,9 @@ singleBinary:
priorityClassName: null
# -- Annotations for single binary pods
podAnnotations: {}
# -- Additional selecto labels for each `single binary` pod
# -- Additional labels for each `single binary` pod
podLabels: {}
# -- Additional selector labels for each `single binary` pod
selectorLabels: {}
# -- Comma-separated list of Loki modules to load for the single binary
targetModule: "all"
@ -1022,6 +1030,8 @@ gateway:
priorityClassName: null
# -- Annotations for gateway pods
podAnnotations: {}
# -- Additional labels for gateway pods
podLabels: {}
# -- Additional CLI args for the gateway
extraArgs: []
# -- Environment variables to add to the gateway pods

Loading…
Cancel
Save