diff --git a/charts/grafana/Chart.yaml b/charts/grafana/Chart.yaml index ec0ec01b4c..46fc6091f8 100644 --- a/charts/grafana/Chart.yaml +++ b/charts/grafana/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: grafana -version: 6.42.2 -appVersion: 9.2.0 +version: 6.42.5 +appVersion: 9.2.1 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. home: https://grafana.net diff --git a/charts/grafana/README.md b/charts/grafana/README.md index 7399da725d..04ea4c6a4e 100644 --- a/charts/grafana/README.md +++ b/charts/grafana/README.md @@ -206,6 +206,7 @@ This version requires Helm >= 3.1.0. | `serviceAccount.autoMount` | Automount the service account token in the pod| `true` | | `serviceAccount.annotations` | ServiceAccount annotations | | | `serviceAccount.create` | Create service account | `true` | +| `serviceAccount.labels` | ServiceAccount labels | `{}` | | `serviceAccount.name` | Service account name to use, when empty will be set to created account if `serviceAccount.create` is set else to `default` | `` | | `serviceAccount.nameTest` | Service account name to use for test, when empty will be set to created account if `serviceAccount.create` is set else to `default` | `nil` | | `rbac.create` | Create and use RBAC resources | `true` | diff --git a/charts/grafana/templates/serviceaccount.yaml b/charts/grafana/templates/serviceaccount.yaml index 4ccee15ed4..1a401fe479 100644 --- a/charts/grafana/templates/serviceaccount.yaml +++ b/charts/grafana/templates/serviceaccount.yaml @@ -4,6 +4,9 @@ kind: ServiceAccount metadata: labels: {{- include "grafana.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- $root := . }} {{- with .Values.serviceAccount.annotations }} annotations: diff --git a/charts/grafana/values.yaml b/charts/grafana/values.yaml index f800927421..19fbf50cda 100644 --- a/charts/grafana/values.yaml +++ b/charts/grafana/values.yaml @@ -17,6 +17,8 @@ serviceAccount: create: true name: nameTest: + ## ServiceAccount labels. + labels: {} ## Service account annotations. Can be templated. # annotations: # eks.amazonaws.com/role-arn: arn:aws:iam::123456789000:role/iam-role-name-here @@ -321,7 +323,7 @@ persistence: initChownData: ## If false, data ownership will not be reset at startup - ## This allows the prometheus-server to be run with an arbitrary user + ## This allows the grafana-server to be run with an arbitrary user ## enabled: true diff --git a/charts/loki-distributed/Chart.yaml b/charts/loki-distributed/Chart.yaml index 2ae58b224f..cb34183646 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.6.1 -version: 0.63.1 +version: 0.63.2 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 1142587a1a..e65ddeab69 100644 --- a/charts/loki-distributed/README.md +++ b/charts/loki-distributed/README.md @@ -1,6 +1,6 @@ # loki-distributed -![Version: 0.63.1](https://img.shields.io/badge/Version-0.63.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square) +![Version: 0.63.2](https://img.shields.io/badge/Version-0.63.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square) Helm chart for Grafana Loki in microservices mode @@ -389,7 +389,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | prometheusRule.groups | list | `[]` | Contents of Prometheus rules file | | prometheusRule.labels | object | `{}` | Additional PrometheusRule labels | | prometheusRule.namespace | string | `nil` | Alternative namespace for the PrometheusRule resource | -| querier.affinity | string | Hard node and soft zone anti-affinity | Affinity for querier pods. Passed through `tpl` and, thus, to be configured as string | +| querier.affinity | object | Hard node and soft zone anti-affinity | Affinity for querier pods. Passed through `tpl` and, thus, to be configured as string | | querier.appProtocol | object | `{"grpc":""}` | Adds the appProtocol field to the querier service. This allows querier to work with istio protocol selection. | | querier.appProtocol.grpc | string | `""` | Set the optional grpc service protocol. Ex: "grpc", "http2" or "https" | | querier.autoscaling.enabled | bool | `false` | Enable autoscaling for the querier, this is only used if `queryIndex.enabled: true` | @@ -422,6 +422,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA | querier.serviceLabels | object | `{}` | Labels for querier service | | querier.terminationGracePeriodSeconds | int | `30` | Grace period to allow the querier to shutdown before it is killed | | querier.tolerations | list | `[]` | Tolerations for querier pods | +| querier.topologySpreadConstraints | string | Defaults to allow skew no more then 1 node per AZ | topologySpread for querier pods. Passed through `tpl` and, thus, to be configured as string | | queryFrontend.affinity | string | Hard node and soft zone anti-affinity | Affinity for query-frontend pods. Passed through `tpl` and, thus, to be configured as string | | queryFrontend.appProtocol | object | `{"grpc":""}` | Adds the appProtocol field to the queryFrontend service. This allows queryFrontend to work with istio protocol selection. | | queryFrontend.appProtocol.grpc | string | `""` | Set the optional grpc service protocol. Ex: "grpc", "http2" or "https" | diff --git a/charts/loki-distributed/templates/compactor/deployment-compactor.yaml b/charts/loki-distributed/templates/compactor/deployment-compactor.yaml index 0a029189d7..bb30e7b9b3 100644 --- a/charts/loki-distributed/templates/compactor/deployment-compactor.yaml +++ b/charts/loki-distributed/templates/compactor/deployment-compactor.yaml @@ -5,6 +5,10 @@ metadata: name: {{ include "loki.compactorFullname" . }} labels: {{- include "loki.compactorLabels" . | nindent 4 }} + {{- with .Values.loki.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: 1 revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} diff --git a/charts/loki-distributed/templates/ingester/deployment-ingester.yaml b/charts/loki-distributed/templates/ingester/deployment-ingester.yaml index 38781cbe67..00169d8afb 100644 --- a/charts/loki-distributed/templates/ingester/deployment-ingester.yaml +++ b/charts/loki-distributed/templates/ingester/deployment-ingester.yaml @@ -6,6 +6,10 @@ metadata: labels: {{- include "loki.ingesterLabels" . | nindent 4 }} app.kubernetes.io/part-of: memberlist + {{- with .Values.loki.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.ingester.autoscaling.enabled }} replicas: {{ .Values.ingester.replicas }} 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 1665b41f7a..56f5cac290 100644 --- a/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml +++ b/charts/loki-distributed/templates/memcached-chunks/statefulset-memcached-chunks.yaml @@ -5,6 +5,10 @@ metadata: name: {{ include "loki.memcachedChunksFullname" . }} labels: {{- include "loki.memcachedChunksLabels" . | nindent 4 }} + {{- with .Values.loki.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.memcachedChunks.replicas }} updateStrategy: diff --git a/charts/loki-distributed/templates/querier/deployment-querier.yaml b/charts/loki-distributed/templates/querier/deployment-querier.yaml index 4cad274ce1..4a0b28bc48 100644 --- a/charts/loki-distributed/templates/querier/deployment-querier.yaml +++ b/charts/loki-distributed/templates/querier/deployment-querier.yaml @@ -42,6 +42,12 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if ge (.Capabilities.KubeVersion.Minor|int) 19 }} + {{- with .Values.querier.topologySpreadConstraints }} + topologySpreadConstraints: + {{- tpl . $ | nindent 8 }} + {{- end }} + {{- end }} serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/loki-distributed/templates/querier/statefulset-querier.yaml b/charts/loki-distributed/templates/querier/statefulset-querier.yaml index aef349f507..7125b8dc66 100644 --- a/charts/loki-distributed/templates/querier/statefulset-querier.yaml +++ b/charts/loki-distributed/templates/querier/statefulset-querier.yaml @@ -41,6 +41,12 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if ge (.Capabilities.KubeVersion.Minor|int) 19 }} + {{- with .Values.querier.topologySpreadConstraints }} + topologySpreadConstraints: + {{- tpl . $ | nindent 8 }} + {{- end }} + {{- end }} serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/loki-distributed/values.yaml b/charts/loki-distributed/values.yaml index 9737427f38..72cbe54978 100644 --- a/charts/loki-distributed/values.yaml +++ b/charts/loki-distributed/values.yaml @@ -511,22 +511,18 @@ 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: | + - 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: | - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - {{- include "loki.querierSelectorLabels" . | nindent 10 }} - topologyKey: kubernetes.io/hostname - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - {{- include "loki.querierSelectorLabels" . | nindent 12 }} - topologyKey: failure-domain.beta.kubernetes.io/zone + affinity: {} # -- Pod Disruption Budget maxUnavailable maxUnavailable: null # -- Node selector for querier pods diff --git a/charts/loki-simple-scalable/README.md b/charts/loki-simple-scalable/README.md index 1328f5889d..4ff9501057 100644 --- a/charts/loki-simple-scalable/README.md +++ b/charts/loki-simple-scalable/README.md @@ -1,4 +1,4 @@ -# ⚠️ DEPRECATEDD - Loki Simple Scalable chart +# ⚠️ DEPRECATED - Loki Simple Scalable chart This chart was moved to . The new chart is published to `grafana/loki` and this chart is deprecated and no longer maintained. diff --git a/charts/tempo-distributed/Chart.yaml b/charts/tempo-distributed/Chart.yaml index 1e10f0d114..be33ca561f 100644 --- a/charts/tempo-distributed/Chart.yaml +++ b/charts/tempo-distributed/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tempo-distributed description: Grafana Tempo in MicroService mode type: application -version: 0.26.7 +version: 0.26.8 appVersion: 1.5.0 engine: gotpl home: https://grafana.com/docs/tempo/latest/ diff --git a/charts/tempo-distributed/README.md b/charts/tempo-distributed/README.md index 1e52c468e6..56a48fb455 100644 --- a/charts/tempo-distributed/README.md +++ b/charts/tempo-distributed/README.md @@ -1,6 +1,6 @@ # tempo-distributed -![Version: 0.26.7](https://img.shields.io/badge/Version-0.26.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.0](https://img.shields.io/badge/AppVersion-1.5.0-informational?style=flat-square) +![Version: 0.26.8](https://img.shields.io/badge/Version-0.26.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.0](https://img.shields.io/badge/AppVersion-1.5.0-informational?style=flat-square) Grafana Tempo in MicroService mode @@ -395,7 +395,7 @@ The memcached default args are removed and should be provided manually. The sett | server.grpc_server_max_send_msg_size | int | `4194304` | Max gRPC message size that can be sent | | server.httpListenPort | int | `3100` | HTTP server listen host | | server.logFormat | string | `"logfmt"` | Log format. Can be set to logfmt (default) or json. | -| server.logLevel | string | `"info"` | Log level. Can be set to trace, debug, info (default), warn error, fatal, panic | +| server.logLevel | string | `"info"` | Log level. Can be set to trace, debug, info (default), warn, error, fatal, panic | | serviceAccount.annotations | object | `{}` | Annotations for the service account | | serviceAccount.create | bool | `true` | Specifies whether a ServiceAccount should be created | | serviceAccount.imagePullSecrets | list | `[]` | Image pull secrets for the service account | diff --git a/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml b/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml index c0698f1cb1..7cb18d5bee 100644 --- a/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml +++ b/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml @@ -16,7 +16,7 @@ spec: selector: matchLabels: {{- include "tempo.ingesterSelectorLabels" . | nindent 6}} - serviceName: ingester + serviceName: {{ template "tempo.ingesterFullname" . }} podManagementPolicy: Parallel updateStrategy: rollingUpdate: diff --git a/charts/tempo-distributed/values.yaml b/charts/tempo-distributed/values.yaml index 3f8ce58d3f..4a0a4f74de 100644 --- a/charts/tempo-distributed/values.yaml +++ b/charts/tempo-distributed/values.yaml @@ -773,7 +773,7 @@ config: | server: # -- HTTP server listen host httpListenPort: 3100 - # -- Log level. Can be set to trace, debug, info (default), warn error, fatal, panic + # -- Log level. Can be set to trace, debug, info (default), warn, error, fatal, panic logLevel: info # -- Log format. Can be set to logfmt (default) or json. logFormat: logfmt