diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index afbe68f2f59b5..0054b96810def 100644 --- a/production/helm/loki/CHANGELOG.md +++ b/production/helm/loki/CHANGELOG.md @@ -16,6 +16,7 @@ Entries should include a reference to the pull request that introduced the chang ## 6.0.0 - [CHANGE] the lokiCanary section was moved from under monitoring to be under the root of the file. +- [CHANGE] the definitions for topologySpreadConstraints and podAffinity were converted from string templates to objects. Also removed the soft constraint on zone. ## 5.41.8 diff --git a/production/helm/loki/templates/backend/statefulset-backend.yaml b/production/helm/loki/templates/backend/statefulset-backend.yaml index 0bdef7e8e7774..c60098aadf937 100644 --- a/production/helm/loki/templates/backend/statefulset-backend.yaml +++ b/production/helm/loki/templates/backend/statefulset-backend.yaml @@ -205,7 +205,7 @@ spec: {{- toYaml .Values.backend.resources | nindent 12 }} {{- with .Values.backend.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.backend.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/compactor/statefulset-compactor.yaml b/production/helm/loki/templates/compactor/statefulset-compactor.yaml index 7c87712ae5e80..29eb941e0f6e2 100644 --- a/production/helm/loki/templates/compactor/statefulset-compactor.yaml +++ b/production/helm/loki/templates/compactor/statefulset-compactor.yaml @@ -132,7 +132,7 @@ spec: {{- end }} {{- with .Values.compactor.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.compactor.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/distributor/deployment-distributor.yaml b/production/helm/loki/templates/distributor/deployment-distributor.yaml index 19f9cf3da5495..ea4b2d6472de1 100644 --- a/production/helm/loki/templates/distributor/deployment-distributor.yaml +++ b/production/helm/loki/templates/distributor/deployment-distributor.yaml @@ -110,7 +110,7 @@ spec: {{- end }} {{- with .Values.distributor.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.distributor.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/gateway/deployment-gateway.yaml b/production/helm/loki/templates/gateway/deployment-gateway.yaml index d452a874d59a3..351ac01e13d93 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway.yaml @@ -101,7 +101,7 @@ spec: {{- end }} {{- with .Values.gateway.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.gateway.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml b/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml index 10fa57a4f6794..430d8c061b7fb 100644 --- a/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml +++ b/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml @@ -121,7 +121,7 @@ spec: {{- end }} {{- with .Values.indexGateway.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.indexGateway.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/ingester/statefulset-ingester.yaml b/production/helm/loki/templates/ingester/statefulset-ingester.yaml index fa0a6a125fc85..d08a84c24202a 100644 --- a/production/helm/loki/templates/ingester/statefulset-ingester.yaml +++ b/production/helm/loki/templates/ingester/statefulset-ingester.yaml @@ -57,7 +57,7 @@ spec: {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- with .Values.ingester.topologySpreadConstraints }} topologySpreadConstraints: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- end }} serviceAccountName: {{ include "loki.serviceAccountName" . }} @@ -136,7 +136,7 @@ spec: {{- end }} {{- with .Values.ingester.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/querier/deployment-querier.yaml b/production/helm/loki/templates/querier/deployment-querier.yaml index 8a7377ff43017..57ae6d57c9633 100644 --- a/production/helm/loki/templates/querier/deployment-querier.yaml +++ b/production/helm/loki/templates/querier/deployment-querier.yaml @@ -47,7 +47,7 @@ spec: {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- with .Values.querier.topologySpreadConstraints }} topologySpreadConstraints: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- end }} serviceAccountName: {{ include "loki.serviceAccountName" . }} @@ -118,7 +118,7 @@ spec: {{- end }} {{- with .Values.querier.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.querier.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/query-frontend/deployment-query-frontend.yaml b/production/helm/loki/templates/query-frontend/deployment-query-frontend.yaml index 9f357f2854a9b..b956d873118bb 100644 --- a/production/helm/loki/templates/query-frontend/deployment-query-frontend.yaml +++ b/production/helm/loki/templates/query-frontend/deployment-query-frontend.yaml @@ -107,7 +107,7 @@ spec: {{- end }} {{- with .Values.queryFrontend.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryFrontend.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/query-scheduler/deployment-query-scheduler.yaml b/production/helm/loki/templates/query-scheduler/deployment-query-scheduler.yaml index fc87b9b061dde..e3f058b88d852 100644 --- a/production/helm/loki/templates/query-scheduler/deployment-query-scheduler.yaml +++ b/production/helm/loki/templates/query-scheduler/deployment-query-scheduler.yaml @@ -105,7 +105,7 @@ spec: {{- end }} {{- with .Values.queryScheduler.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/read/deployment-read.yaml b/production/helm/loki/templates/read/deployment-read.yaml index a5e7524f2a05f..92d35a8753456 100644 --- a/production/helm/loki/templates/read/deployment-read.yaml +++ b/production/helm/loki/templates/read/deployment-read.yaml @@ -117,7 +117,7 @@ spec: {{- toYaml .Values.read.resources | nindent 12 }} {{- with .Values.read.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.read.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/read/statefulset-read.yaml b/production/helm/loki/templates/read/statefulset-read.yaml index 3b0d91d926a3c..1bdb0f45f360c 100644 --- a/production/helm/loki/templates/read/statefulset-read.yaml +++ b/production/helm/loki/templates/read/statefulset-read.yaml @@ -121,7 +121,7 @@ spec: {{- toYaml .Values.read.resources | nindent 12 }} {{- with .Values.read.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.read.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/ruler/statefulset-ruler.yaml b/production/helm/loki/templates/ruler/statefulset-ruler.yaml index c4205ad2c7493..f4ee76eb47868 100644 --- a/production/helm/loki/templates/ruler/statefulset-ruler.yaml +++ b/production/helm/loki/templates/ruler/statefulset-ruler.yaml @@ -110,7 +110,7 @@ spec: {{- end }} {{- with .Values.ruler.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.nodeSelector }} nodeSelector: diff --git a/production/helm/loki/templates/single-binary/statefulset.yaml b/production/helm/loki/templates/single-binary/statefulset.yaml index b74cc60500d6a..70fc17fb7cb78 100644 --- a/production/helm/loki/templates/single-binary/statefulset.yaml +++ b/production/helm/loki/templates/single-binary/statefulset.yaml @@ -135,7 +135,7 @@ spec: {{- end }} {{- with .Values.singleBinary.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.singleBinary.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/table-manager/deployment-table-manager.yaml b/production/helm/loki/templates/table-manager/deployment-table-manager.yaml index bc14d1f6df491..00c150abecf4a 100644 --- a/production/helm/loki/templates/table-manager/deployment-table-manager.yaml +++ b/production/helm/loki/templates/table-manager/deployment-table-manager.yaml @@ -90,7 +90,7 @@ spec: {{- end }} {{- with .Values.tableManager.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tableManager.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/templates/write/statefulset-write.yaml b/production/helm/loki/templates/write/statefulset-write.yaml index ca67038a16192..34ca5d747f65f 100644 --- a/production/helm/loki/templates/write/statefulset-write.yaml +++ b/production/helm/loki/templates/write/statefulset-write.yaml @@ -143,7 +143,7 @@ spec: {{- end }} {{- with .Values.write.affinity }} affinity: - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.write.dnsConfig }} dnsConfig: diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 863d17c8079c7..aa751743c859e 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -816,14 +816,14 @@ gateway: extraContainers: [] # -- Grace period to allow the gateway to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for gateway pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for gateway pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.gatewaySelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: gateway topologyKey: kubernetes.io/hostname # -- DNS config for gateway pods dnsConfig: {} @@ -1058,14 +1058,14 @@ singleBinary: resources: {} # -- Grace period to allow the single binary to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for single binary pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for single binary pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.singleBinarySelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: single-binary topologyKey: kubernetes.io/hostname # -- DNS config for single binary pods dnsConfig: {} @@ -1179,14 +1179,14 @@ write: # this must be increased. It must be long enough so writes can be gracefully shutdown flushing/transferring # all data and to successfully leave the member ring on shutdown. terminationGracePeriodSeconds: 300 - # -- Affinity for write pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for write pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.writeSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: write topologyKey: kubernetes.io/hostname # -- DNS config for write pods dnsConfig: {} @@ -1290,14 +1290,14 @@ read: resources: {} # -- Grace period to allow the read to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for read pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for read pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.readSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: read topologyKey: kubernetes.io/hostname # -- DNS config for read pods dnsConfig: {} @@ -1394,14 +1394,14 @@ backend: # this must be increased. It must be long enough so backends can be gracefully shutdown flushing/transferring # all data and to successfully leave the member ring on shutdown. terminationGracePeriodSeconds: 300 - # -- Affinity for backend pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for backend pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.backendSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: backend topologyKey: kubernetes.io/hostname # -- DNS config for backend pods dnsConfig: {} @@ -1515,31 +1515,24 @@ ingester: terminationGracePeriodSeconds: 300 # -- Lifecycle for the ingester container lifecycle: {} - # -- topologySpread for ingester pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Defaults to allow skew no more then 1 node per AZ - topologySpreadConstraints: | + # -- topologySpread for ingester pods. + # @default -- Defaults to allow skew no more than 1 node + topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway labelSelector: matchLabels: - {{- include "loki.ingesterSelectorLabels" . | nindent 6 }} - # -- Affinity for ingester pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + app.kubernetes.io/component: ingester + # -- Affinity for ingester pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.ingesterSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: ingester topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.ingesterSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Max Surge for ingester pods @@ -1648,22 +1641,15 @@ distributor: extraContainers: [] # -- Grace period to allow the distributor to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for distributor pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for distributor pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.distributorSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: distributor topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.distributorSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Max Surge for distributor pods @@ -1748,31 +1734,24 @@ querier: initContainers: [] # -- Grace period to allow the querier to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- topologySpread for querier pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Defaults to allow skew no more then 1 node per AZ - topologySpreadConstraints: | + # -- topologySpread for querier pods. + # @default -- Defaults to allow skew no more then 1 node + topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway labelSelector: matchLabels: - {{- include "loki.querierSelectorLabels" . | nindent 6 }} - # -- Affinity for querier pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + app.kubernetes.io/component: querier + # -- Affinity for querier pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.querierSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: querier topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.querierSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Max Surge for querier pods @@ -1870,22 +1849,15 @@ queryFrontend: extraContainers: [] # -- Grace period to allow the query-frontend to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for query-frontend pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for query-frontend pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.queryFrontendSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: query-frontend topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.queryFrontendSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Node selector for query-frontend pods @@ -1939,22 +1911,15 @@ queryScheduler: extraContainers: [] # -- Grace period to allow the query-scheduler to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for query-scheduler pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for query-scheduler pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.querySchedulerSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: query-scheduler topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.querySchedulerSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: 1 # -- Node selector for query-scheduler pods @@ -2009,22 +1974,15 @@ indexGateway: initContainers: [] # -- Grace period to allow the index-gateway to shutdown before it is killed. terminationGracePeriodSeconds: 300 - # -- Affinity for index-gateway pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for index-gateway pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.indexGatewaySelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: index-gateway topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.indexGatewaySelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Node selector for index-gateway pods @@ -2078,22 +2036,15 @@ compactor: podLabels: {} # -- Annotations for compactor pods podAnnotations: {} - # -- Affinity for compactor pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for compactor pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.compactorSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: compactor topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.compactorSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Labels for compactor service serviceLabels: {} # -- Additional CLI args for the compactor @@ -2213,22 +2164,15 @@ ruler: initContainers: [] # -- Grace period to allow the ruler to shutdown before it is killed terminationGracePeriodSeconds: 300 - # -- Affinity for ruler pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for ruler pods. + # @default -- Hard node anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.rulerSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: ruler topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.rulerSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Node selector for ruler pods @@ -2614,22 +2558,15 @@ tableManager: extraContainers: [] # -- Grace period to allow the table-manager to shutdown before it is killed terminationGracePeriodSeconds: 30 - # -- Affinity for table-manager pods. Passed through `tpl` and, thus, to be configured as string - # @default -- Hard node and soft zone anti-affinity - affinity: | + # -- Affinity for table-manager pods. + # @default -- Hard node and anti-affinity + affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: - {{- include "loki.tableManagerSelectorLabels" . | nindent 10 }} + app.kubernetes.io/component: table-manager topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.tableManagerSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone # -- DNS config table-manager pods dnsConfig: {} # -- Node selector for table-manager pods