Skip to content

Commit

Permalink
Merge branch 'main' into promtail-chart-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zanhsieh authored May 7, 2024
2 parents 524e89a + e7a151e commit 5ea589f
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 35 deletions.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 7.3.9
version: 7.3.10
appVersion: 10.4.1
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
12 changes: 5 additions & 7 deletions charts/grafana/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,11 @@ Return the appropriate apiVersion for ingress.
Return the appropriate apiVersion for Horizontal Pod Autoscaler.
*/}}
{{- define "grafana.hpa.apiVersion" -}}
{{- if $.Capabilities.APIVersions.Has "autoscaling/v2/HorizontalPodAutoscaler" }}
{{- print "autoscaling/v2" }}
{{- else if $.Capabilities.APIVersions.Has "autoscaling/v2beta2/HorizontalPodAutoscaler" }}
{{- print "autoscaling/v2beta2" }}
{{- else }}
{{- print "autoscaling/v2beta1" }}
{{- end }}
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" }}
{{- print "autoscaling/v2" }}
{{- else }}
{{- print "autoscaling/v2beta2" }}
{{- end }}
{{- end }}
{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/tempo-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tempo-distributed
description: Grafana Tempo in MicroService mode
type: application
version: 1.9.3
version: 1.9.9
appVersion: 2.4.1
engine: gotpl
home: https://grafana.com/docs/tempo/latest/
Expand Down
16 changes: 14 additions & 2 deletions charts/tempo-distributed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tempo-distributed

![Version: 1.9.3](https://img.shields.io/badge/Version-1.9.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.1](https://img.shields.io/badge/AppVersion-2.4.1-informational?style=flat-square)
![Version: 1.9.9](https://img.shields.io/badge/Version-1.9.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.1](https://img.shields.io/badge/AppVersion-2.4.1-informational?style=flat-square)

Grafana Tempo in MicroService mode

Expand Down Expand Up @@ -223,6 +223,10 @@ The memcached default args are removed and should be provided manually. The sett
| adminApi.extraVolumeMounts | list | `[]` | |
| adminApi.extraVolumes | list | `[]` | |
| adminApi.hostAliases | list | `[]` | hostAliases to add |
| adminApi.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets` |
| adminApi.image.registry | string | `nil` | The Docker registry for the adminApi image. Overrides `tempo.image.registry` |
| adminApi.image.repository | string | `nil` | Docker image repository for the adminApi image. Overrides `tempo.image.repository` |
| adminApi.image.tag | string | `nil` | Docker image tag for the adminApi image. Overrides `tempo.image.tag` |
| adminApi.initContainers | list | `[]` | |
| adminApi.nodeSelector | object | `{}` | |
| adminApi.persistence.subPath | string | `nil` | |
Expand Down Expand Up @@ -369,6 +373,10 @@ The memcached default args are removed and should be provided manually. The sett
| enterpriseGateway.extraVolumeMounts | list | `[]` | |
| enterpriseGateway.extraVolumes | list | `[]` | |
| enterpriseGateway.hostAliases | list | `[]` | hostAliases to add |
| enterpriseGateway.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets` |
| enterpriseGateway.image.registry | string | `nil` | The Docker registry for the enterpriseGateway image. Overrides `tempo.image.registry` |
| enterpriseGateway.image.repository | string | `nil` | Docker image repository for the enterpriseGateway image. Overrides `tempo.image.repository` |
| enterpriseGateway.image.tag | string | `nil` | Docker image tag for the enterpriseGateway image. Overrides `tempo.image.tag` |
| enterpriseGateway.ingress.annotations | object | `{}` | Annotations for the gateway ingress |
| enterpriseGateway.ingress.enabled | bool | `false` | Specifies whether an ingress for the gateway should be created |
| enterpriseGateway.ingress.hosts | list | `[{"host":"gateway.gem.example.com","paths":[{"path":"/"}]}]` | Hosts configuration for the gateway ingress |
Expand Down Expand Up @@ -777,6 +785,10 @@ The memcached default args are removed and should be provided manually. The sett
| tokengenJob.extraArgs | object | `{}` | |
| tokengenJob.extraEnvFrom | list | `[]` | |
| tokengenJob.hostAliases | list | `[]` | hostAliases to add |
| tokengenJob.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets` |
| tokengenJob.image.registry | string | `nil` | The Docker registry for the tokengenJob image. Overrides `tempo.image.registry` |
| tokengenJob.image.repository | string | `nil` | Docker image repository for the tokengenJob image. Overrides `tempo.image.repository` |
| tokengenJob.image.tag | string | `nil` | Docker image tag for the tokengenJob image. Overrides `tempo.image.tag` |
| tokengenJob.initContainers | list | `[]` | |
| traces.jaeger.grpc.enabled | bool | `false` | Enable Tempo to ingest Jaeger GRPC traces |
| traces.jaeger.grpc.receiverConfig | object | `{}` | Jaeger GRPC receiver config |
Expand Down Expand Up @@ -912,7 +924,7 @@ config: |
backend: s3
s3:
access_key: tempo
bucket: tempo
bucket: <your s3 bucket>
endpoint: minio:9000
insecure: true
secret_key: supersecret
Expand Down
2 changes: 1 addition & 1 deletion charts/tempo-distributed/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ config: |
backend: s3
s3:
access_key: tempo
bucket: tempo
bucket: <your s3 bucket>
endpoint: minio:9000
insecure: true
secret_key: supersecret
Expand Down
7 changes: 7 additions & 0 deletions charts/tempo-distributed/templates/admin-api/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{/*
adminApi imagePullSecrets
*/}}
{{- define "tempo.adminApiImagePullSecrets" -}}
{{- $dict := dict "tempo" .Values.tempo.image "component" .Values.adminApi.image "global" .Values.global.image -}}
{{- include "tempo.imagePullSecrets" $dict -}}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ spec:
{{- with .Values.adminApi.initContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.tempo.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- include "tempo.adminApiImagePullSecrets" . | nindent 6 -}}
{{- with .Values.adminApi.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ Return if ingress supports pathType.
{{- define "tempo.ingress.supportsPathType" -}}
{{- or (eq (include "tempo.ingress.isStable" .) "true") (and (eq (include "tempo.ingress.apiVersion" .) "networking.k8s.io/v1beta1") (semverCompare ">= 1.18-0" .Capabilities.KubeVersion.Version)) -}}
{{- end -}}

{{/*
enterpriseGateway imagePullSecrets
*/}}
{{- define "tempo.enterpriseGatewayImagePullSecrets" -}}
{{- $dict := dict "tempo" .Values.tempo.image "component" .Values.enterpriseGateway.image "global" .Values.global.image -}}
{{- include "tempo.imagePullSecrets" $dict -}}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ spec:
{{- toYaml .Values.enterpriseGateway.securityContext | nindent 8 }}
initContainers:
{{- toYaml .Values.enterpriseGateway.initContainers | nindent 8 }}
{{- if .Values.tempo.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- include "tempo.enterpriseGatewayImagePullSecrets" . | nindent 6 -}}
{{- with .Values.enterpriseGateway.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/tempo-distributed/templates/lib/service-monitor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ spec:
scrapeTimeout: {{ . }}
{{- end }}
relabelings:
- sourceLabels: [job]
- action: replace
sourceLabels: [job]
replacement: "{{ $.ctx.Release.Namespace }}/{{ $.component }}"
targetLabel: job
{{- if kindIs "string" .clusterLabel }}
Expand Down
7 changes: 7 additions & 0 deletions charts/tempo-distributed/templates/tokengen/__helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{/*
tokengen-job imagePullSecrets
*/}}
{{- define "tempo.tokengenJobImagePullSecrets" -}}
{{- $dict := dict "tempo" .Values.tempo.image "component" .Values.tokengenJob.image "global" .Values.global.image -}}
{{- include "tempo.imagePullSecrets" $dict -}}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
backoffLimit: 6
completions: 1
parallelism: 1
selector:
template:
metadata:
labels:
Expand All @@ -33,12 +32,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.tokengenJob.securityContext | nindent 8 }}
{{- if .Values.tempo.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.tempo.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- include "tempo.tokengenJobImagePullSecrets" . | nindent 6 -}}
{{- with .Values.tokengenJob.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
33 changes: 33 additions & 0 deletions charts/tempo-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,10 @@ gateway:
proxy_pass http://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:4318/v1/traces;
}
location = /otlp/v1/traces {
proxy_pass http://{{ include "tempo.resourceName" (dict "ctx" . "component" "distributor") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:4318/v1/traces;
}
location ^~ /api {
proxy_pass http://{{ include "tempo.resourceName" (dict "ctx" . "component" "query-frontend") }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:3100$request_uri;
}
Expand Down Expand Up @@ -1902,6 +1906,15 @@ tokengenJob:
env: []
extraEnvFrom: []
annotations: {}
image:
# -- The Docker registry for the tokengenJob image. Overrides `tempo.image.registry`
registry: null
# -- Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets`
pullSecrets: []
# -- Docker image repository for the tokengenJob image. Overrides `tempo.image.repository`
repository: null
# -- Docker image tag for the tokengenJob image. Overrides `tempo.image.tag`
tag: null
initContainers: []
# -- The SecurityContext for tokenjobgen containers
containerSecurityContext:
Expand All @@ -1922,6 +1935,16 @@ adminApi:
annotations: {}
labels: {}

image:
# -- The Docker registry for the adminApi image. Overrides `tempo.image.registry`
registry: null
# -- Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets`
pullSecrets: []
# -- Docker image repository for the adminApi image. Overrides `tempo.image.repository`
repository: null
# -- Docker image tag for the adminApi image. Overrides `tempo.image.tag`
tag: null

initContainers: []

strategy:
Expand Down Expand Up @@ -2009,6 +2032,16 @@ enterpriseGateway:
# hostnames:
# - domain.tld

image:
# -- The Docker registry for the enterpriseGateway image. Overrides `tempo.image.registry`
registry: null
# -- Optional list of imagePullSecrets. Overrides `tempo.image.pullSecrets`
pullSecrets: []
# -- Docker image repository for the enterpriseGateway image. Overrides `tempo.image.repository`
repository: null
# -- Docker image tag for the enterpriseGateway image. Overrides `tempo.image.tag`
tag: null

annotations: {}
service:
# -- Port of the enterprise gateway service; if left undefined, the service will listen on the same port as the pod
Expand Down
2 changes: 1 addition & 1 deletion charts/tempo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tempo
description: Grafana Tempo Single Binary Mode
type: application
version: 1.7.2
version: 1.7.3
appVersion: 2.3.1
engine: gotpl
home: https://grafana.net
Expand Down
2 changes: 1 addition & 1 deletion charts/tempo/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tempo

![Version: 1.7.2](https://img.shields.io/badge/Version-1.7.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.1](https://img.shields.io/badge/AppVersion-2.3.1-informational?style=flat-square)
![Version: 1.7.3](https://img.shields.io/badge/Version-1.7.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.1](https://img.shields.io/badge/AppVersion-2.3.1-informational?style=flat-square)

Grafana Tempo Single Binary Mode

Expand Down
2 changes: 1 addition & 1 deletion charts/tempo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tempo:
# backend: s3
# store traces in s3
# s3:
# bucket: tempo # store traces in this bucket
# bucket: <your s3 bucket> # store traces in this bucket
# endpoint: s3.dualstack.us-east-2.amazonaws.com # api endpoint
# access_key: ... # optional. access key when using static credentials.
# secret_key: ... # optional. secret key when using static credentials.
Expand Down

0 comments on commit 5ea589f

Please sign in to comment.