Skip to content

Commit

Permalink
Update jaeger all-in-one chart to v0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Sep 29, 2023
1 parent 42115ba commit 2c2b4cb
Show file tree
Hide file tree
Showing 11 changed files with 113 additions and 37 deletions.
4 changes: 2 additions & 2 deletions hack/observability/jaeger/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.22.0
appVersion: "1.47"
description: Jaeger all-in-one helm chart for Kubernetes
home: https://github.com/hansehe/jaeger-all-in-one
icon: https://raw.githubusercontent.com/hansehe/jaeger-all-in-one/master/helm/jaeger.png
Expand All @@ -13,4 +13,4 @@ name: jaeger-all-in-one
sources:
- https://github.com/hansehe/jaeger-all-in-one
type: application
version: 0.1.5
version: 0.1.11
15 changes: 12 additions & 3 deletions hack/observability/jaeger/chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,21 @@ Common labels
{{- define "jaeger-all-in-one.labels" -}}
helm.sh/chart: {{ include "jaeger-all-in-one.chart" . }}
{{ include "jaeger-all-in-one.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/version: "{{ include "jaeger-all-in-one.jaegerVersion" . }}"
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}

{{/*
Version is either the Chart's AppVersion or the image versionOverride, if specified
*/}}
{{- define "jaeger-all-in-one.jaegerVersion" -}}
{{- if ne .Values.image.versionOverride "*" -}}
{{- .Values.image.versionOverride -}}
{{- else -}}
{{ .Chart.AppVersion }}
{{- end -}}
{{- end -}}
{{/*
Selector labels
*/}}
Expand Down
45 changes: 33 additions & 12 deletions hack/observability/jaeger/chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,63 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "jaeger-all-in-one.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion hack/observability/jaeger/chart/templates/jaeger-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "jaeger-all-in-one.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.volume.className }}
storageClassName: {{ .Values.volume.className }}
Expand All @@ -14,4 +15,4 @@ spec:
requests:
storage: {{ .Values.volume.size }}
{{- end }}
{{- end }}
{{- end }}
15 changes: 13 additions & 2 deletions hack/observability/jaeger/chart/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "jaeger-all-in-one.fullname" . }}-headless
namespace: {{ .Release.Namespace }}
labels:
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
{{- with .Values.service.headless.annotations }}
Expand All @@ -28,6 +29,16 @@ spec:
targetPort: http-configs
protocol: TCP
name: http-configs
{{- if .Values.enableHttpOpenTelemetryCollector }}
- port: 4317
targetPort: http-otlp-grpc
protocol: TCP
name: http-otlp-grpc
- port: 4318
targetPort: http-otlp
protocol: TCP
name: http-otlp
{{- end }}
- port: {{ .Values.service.port }}
targetPort: http-ui
protocol: TCP
Expand All @@ -49,7 +60,7 @@ spec:
targetPort: http-zipkin
protocol: TCP
name: http-zipkin
{{- end }}
{{- end }}
selector:
{{- include "jaeger-all-in-one.selectorLabels" . | nindent 4 }}
{{- end }}
{{- end }}
15 changes: 13 additions & 2 deletions hack/observability/jaeger/chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "jaeger-all-in-one.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
Expand All @@ -28,6 +29,16 @@ spec:
targetPort: http-configs
protocol: TCP
name: http-configs
{{- if .Values.enableHttpOpenTelemetryCollector }}
- port: 4317
targetPort: http-otlp-grpc
protocol: TCP
name: http-otlp-grpc
- port: 4318
targetPort: http-otlp
protocol: TCP
name: http-otlp
{{- end }}
- port: {{ .Values.service.port }}
targetPort: http-ui
protocol: TCP
Expand All @@ -49,7 +60,7 @@ spec:
targetPort: http-zipkin
protocol: TCP
name: http-zipkin
{{- end }}
{{- end }}
selector:
{{- include "jaeger-all-in-one.selectorLabels" . | nindent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "jaeger-all-in-one.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "jaeger-all-in-one.labels" . | nindent 4 }}
{{- end -}}
{{- end }}
{{- end }}
21 changes: 17 additions & 4 deletions hack/observability/jaeger/chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "jaeger-all-in-one.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -38,7 +39,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ include "jaeger-all-in-one.jaegerVersion" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: udp-com-thr
Expand All @@ -53,6 +54,14 @@ spec:
- name: http-configs
containerPort: 5778
protocol: TCP
{{- if .Values.enableHttpOpenTelemetryCollector }}
- name: http-otlp-grpc
containerPort: 4317
protocol: TCP
- name: http-otlp
containerPort: 4318
protocol: TCP
{{- end }}
- name: http-ui
containerPort: 16686
protocol: TCP
Expand All @@ -69,7 +78,7 @@ spec:
- name: http-zipkin
containerPort: 9411
protocol: TCP
{{- end }}
{{- end }}
{{- if .Values.volume.enabled }}
volumeMounts:
- mountPath: "/badger"
Expand All @@ -90,10 +99,14 @@ spec:
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- if .Values.enableHttpOpenTelemetryCollector }}
- name: COLLECTOR_OTLP_ENABLED
value: "true"
{{- end }}
{{- if .Values.enableHttpZipkinCollector }}
- name: COLLECTOR_ZIPKIN_HOST_PORT
value: "9411"
{{- end }}
value: ":9411"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled }}
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -13,3 +14,4 @@ spec:
command: ['wget']
args: ['{{ include "jaeger-all-in-one.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
{{- end }}
25 changes: 16 additions & 9 deletions hack/observability/jaeger/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ replicaCount: 1
image:
repository: jaegertracing/all-in-one
pullPolicy: IfNotPresent
versionOverride: "*"

healthCheckUrl: /
imagePullSecrets: []
Expand All @@ -22,6 +23,7 @@ environmentVariables:
BADGER_DIRECTORY_KEY: /badger/key

enableHttpZipkinCollector: false
enableHttpOpenTelemetryCollector: false

serviceAccount:
# Specifies whether a service account should be created
Expand All @@ -30,7 +32,7 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name:

podAnnotations:
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "14269"
Expand All @@ -57,19 +59,21 @@ service:

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: letsencrypt
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
hosts: []
# - host: jaeger.localhost
# paths:
# - /
hosts:
- host: jaeger.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: tls-secret
# hosts:
# - jaeger.localhost
# - secretName: jaeger-tls
# hosts:
# - jaeger.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand All @@ -92,4 +96,7 @@ affinity: {}
volume:
enabled: true
className: ""
size: 3Gi
size: 3Gi

tests:
enabled: true
2 changes: 1 addition & 1 deletion hack/observability/jaeger/fetch-jaeger-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

CHART_RELEASE=${CHART_RELEASE:-0.1.5}
CHART_RELEASE=${CHART_RELEASE:-0.1.11}
JAEGER_ROOT=$(dirname "${BASH_SOURCE[0]}")
CHART_ROOT=$JAEGER_ROOT/chart

Expand Down

0 comments on commit 2c2b4cb

Please sign in to comment.