diff --git a/charts/loki-distributed/Chart.yaml b/charts/loki-distributed/Chart.yaml index d2bece1c29..495b5d5112 100644 --- a/charts/loki-distributed/Chart.yaml +++ b/charts/loki-distributed/Chart.yaml @@ -3,7 +3,7 @@ name: loki-distributed description: Helm chart for Grafana Loki in microservices mode type: application appVersion: 2.8.3 -version: 0.70.7 +version: 0.71.0 home: https://grafana.github.io/helm-charts sources: - https://github.com/grafana/loki diff --git a/charts/loki-distributed/README.md b/charts/loki-distributed/README.md index 21bcd2d9bc..8677ec16a1 100644 --- a/charts/loki-distributed/README.md +++ b/charts/loki-distributed/README.md @@ -1,6 +1,6 @@ # loki-distributed -![Version: 0.70.7](https://img.shields.io/badge/Version-0.70.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.3](https://img.shields.io/badge/AppVersion-2.8.3-informational?style=flat-square) +![Version: 0.71.0](https://img.shields.io/badge/Version-0.71.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.3](https://img.shields.io/badge/AppVersion-2.8.3-informational?style=flat-square) Helm chart for Grafana Loki in microservices mode @@ -85,6 +85,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | compactor.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the compactor pods | | compactor.extraVolumeMounts | list | `[]` | Volume mounts to add to the compactor pods | | compactor.extraVolumes | list | `[]` | Volumes to add to the compactor pods | +| compactor.hostAliases | list | `[]` | hostAliases to add | | compactor.image.registry | string | `nil` | The Docker registry for the compactor image. Overrides `loki.image.registry` | | compactor.image.repository | string | `nil` | Docker image repository for the compactor image. Overrides `loki.image.repository` | | compactor.image.tag | string | `nil` | Docker image tag for the compactor image. Overrides `loki.image.tag` | @@ -124,6 +125,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | distributor.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the distributor pods | | distributor.extraVolumeMounts | list | `[]` | Volume mounts to add to the distributor pods | | distributor.extraVolumes | list | `[]` | Volumes to add to the distributor pods | +| distributor.hostAliases | list | `[]` | hostAliases to add | | distributor.image.registry | string | `nil` | The Docker registry for the distributor image. Overrides `loki.image.registry` | | distributor.image.repository | string | `nil` | Docker image repository for the distributor image. Overrides `loki.image.repository` | | distributor.image.tag | string | `nil` | Docker image tag for the distributor image. Overrides `loki.image.tag` | @@ -163,6 +165,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | gateway.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the gateway pods | | gateway.extraVolumeMounts | list | `[]` | Volume mounts to add to the gateway pods | | gateway.extraVolumes | list | `[]` | Volumes to add to the gateway pods | +| gateway.hostAliases | list | `[]` | hostAliases to add | | gateway.image.pullPolicy | string | `"IfNotPresent"` | The gateway image pull policy | | gateway.image.registry | string | `"docker.io"` | The Docker registry for the gateway image | | gateway.image.repository | string | `"nginxinc/nginx-unprivileged"` | The gateway image repository | @@ -209,6 +212,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | global.dnsService | string | `"kube-dns"` | configures DNS service name | | global.image.registry | string | `nil` | Overrides the Docker registry globally for all images | | global.priorityClassName | string | `nil` | Overrides the priorityClassName for all pods | +| hostAliases | list | `[]` | hostAliases to add | | imagePullSecrets | list | `[]` | Image pull secrets for Docker images | | indexGateway.affinity | string | Hard node and soft zone anti-affinity | Affinity for index-gateway pods. Passed through `tpl` and, thus, to be configured as string | | indexGateway.enabled | bool | `false` | Specifies whether the index-gateway should be enabled | @@ -218,6 +222,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | indexGateway.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the index-gateway pods | | indexGateway.extraVolumeMounts | list | `[]` | Volume mounts to add to the index-gateway pods | | indexGateway.extraVolumes | list | `[]` | Volumes to add to the index-gateway pods | +| indexGateway.hostAliases | list | `[]` | hostAliases to add | | indexGateway.image.registry | string | `nil` | The Docker registry for the index-gateway image. Overrides `loki.image.registry` | | indexGateway.image.repository | string | `nil` | Docker image repository for the index-gateway image. Overrides `loki.image.repository` | | indexGateway.image.tag | string | `nil` | Docker image tag for the index-gateway image. Overrides `loki.image.tag` | @@ -255,6 +260,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | ingester.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the ingester pods | | ingester.extraVolumeMounts | list | `[]` | Volume mounts to add to the ingester pods | | ingester.extraVolumes | list | `[]` | Volumes to add to the ingester pods | +| ingester.hostAliases | list | `[]` | hostAliases to add | | ingester.image.registry | string | `nil` | The Docker registry for the ingester image. Overrides `loki.image.registry` | | ingester.image.repository | string | `nil` | Docker image repository for the ingester image. Overrides `loki.image.repository` | | ingester.image.tag | string | `nil` | Docker image tag for the ingester image. Overrides `loki.image.tag` | @@ -336,6 +342,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | memcachedChunks.extraContainers | list | `[]` | Containers to add to the memcached-chunks pods | | memcachedChunks.extraEnv | list | `[]` | Environment variables to add to memcached-chunks pods | | memcachedChunks.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached-chunks pods | +| memcachedChunks.hostAliases | list | `[]` | hostAliases to add | | memcachedChunks.maxUnavailable | string | `nil` | Pod Disruption Budget maxUnavailable | | memcachedChunks.nodeSelector | object | `{}` | Node selector for memcached-chunks pods | | memcachedChunks.persistence.enabled | bool | `false` | Enable creating PVCs which will persist cached data through restarts | @@ -363,6 +370,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | memcachedFrontend.extraContainers | list | `[]` | Containers to add to the memcached-frontend pods | | memcachedFrontend.extraEnv | list | `[]` | Environment variables to add to memcached-frontend pods | | memcachedFrontend.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached-frontend pods | +| memcachedFrontend.hostAliases | list | `[]` | hostAliases to add | | memcachedFrontend.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable | | memcachedFrontend.nodeSelector | object | `{}` | Node selector for memcached-frontend pods | | memcachedFrontend.persistence.enabled | bool | `false` | Enable creating PVCs which will persist cached data through restarts | @@ -382,6 +390,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | memcachedIndexQueries.extraContainers | list | `[]` | Containers to add to the memcached-index-queries pods | | memcachedIndexQueries.extraEnv | list | `[]` | Environment variables to add to memcached-index-queries pods | | memcachedIndexQueries.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached-index-queries pods | +| memcachedIndexQueries.hostAliases | list | `[]` | hostAliases to add | | memcachedIndexQueries.maxUnavailable | string | `nil` | Pod Disruption Budget maxUnavailable | | memcachedIndexQueries.nodeSelector | object | `{}` | Node selector for memcached-index-queries pods | | memcachedIndexQueries.persistence.enabled | bool | `false` | Enable creating PVCs which will persist cached data through restarts | @@ -401,6 +410,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | memcachedIndexWrites.extraContainers | list | `[]` | Containers to add to the memcached-index-writes pods | | memcachedIndexWrites.extraEnv | list | `[]` | Environment variables to add to memcached-index-writes pods | | memcachedIndexWrites.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached-index-writes pods | +| memcachedIndexWrites.hostAliases | list | `[]` | hostAliases to add | | memcachedIndexWrites.maxUnavailable | string | `nil` | Pod Disruption Budget maxUnavailable | | memcachedIndexWrites.nodeSelector | object | `{}` | Node selector for memcached-index-writes pods | | memcachedIndexWrites.persistence.enabled | bool | `false` | Enable creating PVCs which will persist cached data through restarts | @@ -453,6 +463,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | querier.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the querier pods | | querier.extraVolumeMounts | list | `[]` | Volume mounts to add to the querier pods | | querier.extraVolumes | list | `[]` | Volumes to add to the querier pods | +| querier.hostAliases | list | `[]` | hostAliases to add | | querier.image.registry | string | `nil` | The Docker registry for the querier image. Overrides `loki.image.registry` | | querier.image.repository | string | `nil` | Docker image repository for the querier image. Overrides `loki.image.repository` | | querier.image.tag | string | `nil` | Docker image tag for the querier image. Overrides `loki.image.tag` | @@ -491,6 +502,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | queryFrontend.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the query-frontend pods | | queryFrontend.extraVolumeMounts | list | `[]` | Volume mounts to add to the query-frontend pods | | queryFrontend.extraVolumes | list | `[]` | Volumes to add to the query-frontend pods | +| queryFrontend.hostAliases | list | `[]` | hostAliases to add | | queryFrontend.image.registry | string | `nil` | The Docker registry for the query-frontend image. Overrides `loki.image.registry` | | queryFrontend.image.repository | string | `nil` | Docker image repository for the query-frontend image. Overrides `loki.image.repository` | | queryFrontend.image.tag | string | `nil` | Docker image tag for the query-frontend image. Overrides `loki.image.tag` | @@ -512,6 +524,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | queryScheduler.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the query-scheduler pods | | queryScheduler.extraVolumeMounts | list | `[]` | Volume mounts to add to the query-scheduler pods | | queryScheduler.extraVolumes | list | `[]` | Volumes to add to the query-scheduler pods | +| queryScheduler.hostAliases | list | `[]` | hostAliases to add | | queryScheduler.image.registry | string | `nil` | The Docker registry for the query-scheduler image. Overrides `loki.image.registry` | | queryScheduler.image.repository | string | `nil` | Docker image repository for the query-scheduler image. Overrides `loki.image.repository` | | queryScheduler.image.tag | string | `nil` | Docker image tag for the query-scheduler image. Overrides `loki.image.tag` | @@ -538,6 +551,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | ruler.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the ruler pods | | ruler.extraVolumeMounts | list | `[]` | Volume mounts to add to the ruler pods | | ruler.extraVolumes | list | `[]` | Volumes to add to the ruler pods | +| ruler.hostAliases | list | `[]` | hostAliases to add | | ruler.image.registry | string | `nil` | The Docker registry for the ruler image. Overrides `loki.image.registry` | | ruler.image.repository | string | `nil` | Docker image repository for the ruler image. Overrides `loki.image.repository` | | ruler.image.tag | string | `nil` | Docker image tag for the ruler image. Overrides `loki.image.tag` | @@ -585,6 +599,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | tableManager.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the table-manager pods | | tableManager.extraVolumeMounts | list | `[]` | Volume mounts to add to the table-manager pods | | tableManager.extraVolumes | list | `[]` | Volumes to add to the table-manager pods | +| tableManager.hostAliases | list | `[]` | hostAliases to add | | tableManager.image.registry | string | `nil` | The Docker registry for the table-manager image. Overrides `loki.image.registry` | | tableManager.image.repository | string | `nil` | Docker image repository for the table-manager image. Overrides `loki.image.repository` | | tableManager.image.tag | string | `nil` | Docker image tag for the table-manager image. Overrides `loki.image.tag` | diff --git a/charts/loki-distributed/templates/compactor/deployment-compactor.yaml b/charts/loki-distributed/templates/compactor/deployment-compactor.yaml index c09c93bd8d..925155c789 100644 --- a/charts/loki-distributed/templates/compactor/deployment-compactor.yaml +++ b/charts/loki-distributed/templates/compactor/deployment-compactor.yaml @@ -43,6 +43,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.compactor.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.compactorPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/distributor/deployment-distributor.yaml b/charts/loki-distributed/templates/distributor/deployment-distributor.yaml index ec81788279..f905342c89 100644 --- a/charts/loki-distributed/templates/distributor/deployment-distributor.yaml +++ b/charts/loki-distributed/templates/distributor/deployment-distributor.yaml @@ -47,6 +47,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.distributor.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.distributorPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/gateway/deployment-gateway.yaml b/charts/loki-distributed/templates/gateway/deployment-gateway.yaml index b59980c5db..c3c2d61e97 100644 --- a/charts/loki-distributed/templates/gateway/deployment-gateway.yaml +++ b/charts/loki-distributed/templates/gateway/deployment-gateway.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.gateway.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.gatewayPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.gateway.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/index-gateway/statefulset-index-gateway.yaml b/charts/loki-distributed/templates/index-gateway/statefulset-index-gateway.yaml index 484b6de1b8..78cc270533 100644 --- a/charts/loki-distributed/templates/index-gateway/statefulset-index-gateway.yaml +++ b/charts/loki-distributed/templates/index-gateway/statefulset-index-gateway.yaml @@ -43,6 +43,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.indexGateway.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.indexGatewayPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/ingester/deployment-ingester.yaml b/charts/loki-distributed/templates/ingester/deployment-ingester.yaml index 5997edc286..c9f3a2b4cb 100644 --- a/charts/loki-distributed/templates/ingester/deployment-ingester.yaml +++ b/charts/loki-distributed/templates/ingester/deployment-ingester.yaml @@ -48,6 +48,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.ingester.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.ingesterPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/ingester/statefulset-ingester.yaml b/charts/loki-distributed/templates/ingester/statefulset-ingester.yaml index fa60aac3a8..d1d6495f16 100644 --- a/charts/loki-distributed/templates/ingester/statefulset-ingester.yaml +++ b/charts/loki-distributed/templates/ingester/statefulset-ingester.yaml @@ -55,6 +55,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.ingester.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.ingesterPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml b/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml index 095421015e..d4556e6996 100644 --- a/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml +++ b/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.memcachedChunks.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.memcachedChunksPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.memcached.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/memcached-frontend/statefulset-memcached-frontend.yaml b/charts/loki-distributed/templates/memcached-frontend/statefulset-memcached-frontend.yaml index c12c9a3d05..24a3a9e4b0 100644 --- a/charts/loki-distributed/templates/memcached-frontend/statefulset-memcached-frontend.yaml +++ b/charts/loki-distributed/templates/memcached-frontend/statefulset-memcached-frontend.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.memcachedFrontend.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.memcachedFrontendPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.memcached.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/memcached-index-queries/statefulset-memcached-index-queries.yaml b/charts/loki-distributed/templates/memcached-index-queries/statefulset-memcached-index-queries.yaml index fd0f78b7b8..d09d69bd5f 100644 --- a/charts/loki-distributed/templates/memcached-index-queries/statefulset-memcached-index-queries.yaml +++ b/charts/loki-distributed/templates/memcached-index-queries/statefulset-memcached-index-queries.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.memcachedIndexQueries.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.memcachedIndexQueriesPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.memcached.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/memcached-index-writes/statefulset-memcached-index-writes.yaml b/charts/loki-distributed/templates/memcached-index-writes/statefulset-memcached-index-writes.yaml index 0956076687..bbff176115 100644 --- a/charts/loki-distributed/templates/memcached-index-writes/statefulset-memcached-index-writes.yaml +++ b/charts/loki-distributed/templates/memcached-index-writes/statefulset-memcached-index-writes.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.memcachedIndexWrites.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.memcachedIndexWritesPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.memcached.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/querier/deployment-querier.yaml b/charts/loki-distributed/templates/querier/deployment-querier.yaml index 5a8c219662..35f95597f5 100644 --- a/charts/loki-distributed/templates/querier/deployment-querier.yaml +++ b/charts/loki-distributed/templates/querier/deployment-querier.yaml @@ -54,6 +54,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.querier.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.querierPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/querier/statefulset-querier.yaml b/charts/loki-distributed/templates/querier/statefulset-querier.yaml index 35d09a90f4..df02af99b3 100644 --- a/charts/loki-distributed/templates/querier/statefulset-querier.yaml +++ b/charts/loki-distributed/templates/querier/statefulset-querier.yaml @@ -53,6 +53,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.querier.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.querierPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/query-frontend/deployment-query-frontend.yaml b/charts/loki-distributed/templates/query-frontend/deployment-query-frontend.yaml index f8a467f912..c996d69234 100644 --- a/charts/loki-distributed/templates/query-frontend/deployment-query-frontend.yaml +++ b/charts/loki-distributed/templates/query-frontend/deployment-query-frontend.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.queryFrontend.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.queryFrontendPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/query-scheduler/deployment-query-scheduler.yaml b/charts/loki-distributed/templates/query-scheduler/deployment-query-scheduler.yaml index 15d54220d4..cb1475a7fa 100644 --- a/charts/loki-distributed/templates/query-scheduler/deployment-query-scheduler.yaml +++ b/charts/loki-distributed/templates/query-scheduler/deployment-query-scheduler.yaml @@ -44,6 +44,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.queryScheduler.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.querySchedulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/ruler/deployment-ruler.yaml b/charts/loki-distributed/templates/ruler/deployment-ruler.yaml index 2e390b3143..2a777ecf45 100644 --- a/charts/loki-distributed/templates/ruler/deployment-ruler.yaml +++ b/charts/loki-distributed/templates/ruler/deployment-ruler.yaml @@ -45,6 +45,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.ruler.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.rulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/ruler/statefulset-ruler.yaml b/charts/loki-distributed/templates/ruler/statefulset-ruler.yaml index 82432a6be7..e473c9d816 100644 --- a/charts/loki-distributed/templates/ruler/statefulset-ruler.yaml +++ b/charts/loki-distributed/templates/ruler/statefulset-ruler.yaml @@ -42,6 +42,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.ruler.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.rulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/templates/table-manager/deployment-table-manager.yaml b/charts/loki-distributed/templates/table-manager/deployment-table-manager.yaml index 81ed81ed40..b1543acaeb 100644 --- a/charts/loki-distributed/templates/table-manager/deployment-table-manager.yaml +++ b/charts/loki-distributed/templates/table-manager/deployment-table-manager.yaml @@ -39,6 +39,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.tableManager.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "loki.tableManagerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} diff --git a/charts/loki-distributed/values.yaml b/charts/loki-distributed/values.yaml index 94e20e37a4..62fc5c968e 100644 --- a/charts/loki-distributed/values.yaml +++ b/charts/loki-distributed/values.yaml @@ -20,6 +20,12 @@ fullnameOverride: null # -- Image pull secrets for Docker images imagePullSecrets: [] +# -- hostAliases to add +hostAliases: [] +# - ip: 1.2.3.4 +# hostnames: +# - domain.tld + loki: # -- If set, these annotations are added to all of the Kubernetes controllers # (Deployments, StatefulSets, etc) that this chart launches. Use this to @@ -364,6 +370,11 @@ ingester: kind: StatefulSet # -- Number of replicas for the ingester replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld autoscaling: # -- Enable autoscaling for the ingester enabled: false @@ -486,6 +497,11 @@ ingester: distributor: # -- Number of replicas for the distributor replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld autoscaling: # -- Enable autoscaling for the distributor enabled: false @@ -570,6 +586,11 @@ distributor: querier: # -- Number of replicas for the querier replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld autoscaling: # -- Enable autoscaling for the querier, this is only used if `indexGateway.enabled: true` enabled: false @@ -680,6 +701,11 @@ querier: queryFrontend: # -- Number of replicas for the query-frontend replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld autoscaling: # -- Enable autoscaling for the query-frontend enabled: false @@ -766,6 +792,11 @@ queryScheduler: # It should be lower than `-querier.max-concurrent` to avoid generating back-pressure in queriers; # it's also recommended that this value evenly divides the latter replicas: 2 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld image: # -- The Docker registry for the query-scheduler image. Overrides `loki.image.registry` registry: null @@ -824,6 +855,11 @@ queryScheduler: tableManager: # -- Specifies whether the table-manager should be enabled enabled: false + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld image: # -- The Docker registry for the table-manager image. Overrides `loki.image.registry` registry: null @@ -915,6 +951,11 @@ ingress: gateway: # -- Specifies whether the gateway should be enabled enabled: true + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld # -- Number of replicas for the gateway replicas: 1 # -- Enable logging of 2xx and 3xx HTTP requests @@ -1219,6 +1260,11 @@ gateway: compactor: # -- Specifies whether compactor should be enabled enabled: false + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld image: # -- The Docker registry for the compactor image. Overrides `loki.image.registry` registry: null @@ -1308,6 +1354,11 @@ ruler: kind: Deployment # -- Number of replicas for the ruler replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld image: # -- The Docker registry for the ruler image. Overrides `loki.image.registry` registry: null @@ -1453,6 +1504,11 @@ indexGateway: enabled: false # -- Number of replicas for the index-gateway replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld image: # -- The Docker registry for the index-gateway image. Overrides `loki.image.registry` registry: null @@ -1590,6 +1646,11 @@ memcachedExporter: memcachedChunks: # -- Specifies whether the Memcached chunks cache should be enabled enabled: false + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld # -- Number of replicas for memcached-chunks replicas: 1 # -- The name of the PriorityClass for memcached-chunks pods @@ -1650,6 +1711,11 @@ memcachedChunks: memcachedFrontend: # -- Specifies whether the Memcached frontend cache should be enabled enabled: false + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld # -- Number of replicas for memcached-frontend replicas: 1 # -- The name of the PriorityClass for memcached-frontend pods @@ -1712,6 +1778,11 @@ memcachedIndexQueries: enabled: false # -- Number of replicas for memcached-index-queries replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld # -- The name of the PriorityClass for memcached-index-queries pods priorityClassName: null # -- Labels for memcached-index-queries pods @@ -1772,6 +1843,11 @@ memcachedIndexWrites: enabled: false # -- Number of replicas for memcached-index-writes replicas: 1 + # -- hostAliases to add + hostAliases: [] + # - ip: 1.2.3.4 + # hostnames: + # - domain.tld # -- The name of the PriorityClass for memcached-index-writes pods priorityClassName: null # -- Labels for memcached-index-writes pods