Skip to content

Commit 8a6971d

Browse files
meobilivangrichardcase
authored andcommitted
helm charts for jaeger + otel collector
1 parent 0fd7288 commit 8a6971d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3916
-6
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v2
2+
appVersion: 1.41.0
3+
description: Jaeger all-in-one helm chart for Kubernetes
4+
home: https://github.com/hansehe/jaeger-all-in-one
5+
icon: https://raw.githubusercontent.com/hansehe/jaeger-all-in-one/master/helm/jaeger.png
6+
keywords:
7+
- jaeger
8+
- jaeger-all-in-one
9+
maintainers:
10+
11+
name: hansehe
12+
name: jaeger-all-in-one
13+
sources:
14+
- https://github.com/hansehe/jaeger-all-in-one
15+
type: application
16+
version: 0.1.8
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Hans Erik Heggem
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Jaeger Tracing - All In One
2+
3+
## Introduction
4+
5+
The Jaeger tracing all-in-one service enables jaeger for development purposes, check out:
6+
- https://www.jaegertracing.io/docs/1.18/getting-started/
7+
8+
## Installing the Chart
9+
10+
To install the chart with the release name `jaeger-all-in-one` run:
11+
12+
```bash
13+
$ helm repo add jaeger-all-in-one https://raw.githubusercontent.com/hansehe/jaeger-all-in-one/master/helm/charts
14+
$ helm install jaeger-all-in-one jaeger-all-in-one/jaeger-all-in-one
15+
```
16+
17+
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
18+
19+
```bash
20+
$ helm install jaeger-all-in-one -f values.yaml jaeger-all-in-one/jaeger-all-in-one
21+
```
22+
23+
## Configuration
24+
25+
Find all possible configuration values here:
26+
- https://github.com/hansehe/jaeger-all-in-one/blob/master/helm/jaeger-all-in-one/values.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{- if .Values.enabled }}
2+
1. Get the application URL by running these commands:
3+
{{- if .Values.ingress.enabled }}
4+
{{- range $host := .Values.ingress.hosts }}
5+
{{- range .paths }}
6+
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
7+
{{- end }}
8+
{{- end }}
9+
{{- else if contains "NodePort" .Values.service.type }}
10+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "jaeger-all-in-one.fullname" . }})
11+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
12+
echo http://$NODE_IP:$NODE_PORT
13+
{{- else if contains "LoadBalancer" .Values.service.type }}
14+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
15+
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "jaeger-all-in-one.fullname" . }}'
16+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "jaeger-all-in-one.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
17+
echo http://$SERVICE_IP:{{ .Values.service.port }}
18+
{{- else if contains "ClusterIP" .Values.service.type }}
19+
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "jaeger-all-in-one.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
20+
echo "Visit http://127.0.0.1:{{ .Values.service.port }} to use your application"
21+
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME {{ .Values.service.port }}:{{ .Values.service.port }}
22+
{{- end }}
23+
{{- end }}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "jaeger-all-in-one.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12+
If release name contains chart name it will be used as a full name.
13+
*/}}
14+
{{- define "jaeger-all-in-one.fullname" -}}
15+
{{- if .Values.fullnameOverride -}}
16+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
17+
{{- else -}}
18+
{{- $name := default .Chart.Name .Values.nameOverride -}}
19+
{{- if contains $name .Release.Name -}}
20+
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
21+
{{- else -}}
22+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create chart name and version as used by the chart label.
29+
*/}}
30+
{{- define "jaeger-all-in-one.chart" -}}
31+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
32+
{{- end -}}
33+
34+
{{/*
35+
Common labels
36+
*/}}
37+
{{- define "jaeger-all-in-one.labels" -}}
38+
helm.sh/chart: {{ include "jaeger-all-in-one.chart" . }}
39+
{{ include "jaeger-all-in-one.selectorLabels" . }}
40+
{{- if .Chart.AppVersion }}
41+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
42+
{{- end }}
43+
app.kubernetes.io/managed-by: {{ .Release.Service }}
44+
{{- end -}}
45+
46+
{{/*
47+
Selector labels
48+
*/}}
49+
{{- define "jaeger-all-in-one.selectorLabels" -}}
50+
app.kubernetes.io/name: {{ include "jaeger-all-in-one.name" . }}
51+
app.kubernetes.io/instance: {{ .Release.Name }}
52+
{{- end -}}
53+
54+
{{/*
55+
Create the name of the service account to use
56+
*/}}
57+
{{- define "jaeger-all-in-one.serviceAccountName" -}}
58+
{{- if .Values.serviceAccount.create -}}
59+
{{ default (include "jaeger-all-in-one.fullname" .) .Values.serviceAccount.name }}
60+
{{- else -}}
61+
{{ default "default" .Values.serviceAccount.name }}
62+
{{- end -}}
63+
{{- end -}}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{{- if .Values.enabled }}
2+
{{- if .Values.ingress.enabled -}}
3+
{{- $fullName := include "jaeger-all-in-one.fullname" . -}}
4+
{{- $svcPort := .Values.service.port -}}
5+
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
6+
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
7+
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
8+
{{- end }}
9+
{{- end }}
10+
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
11+
apiVersion: networking.k8s.io/v1
12+
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
13+
apiVersion: networking.k8s.io/v1beta1
14+
{{- else -}}
15+
apiVersion: extensions/v1beta1
16+
{{- end }}
17+
kind: Ingress
18+
metadata:
19+
name: {{ $fullName }}
20+
namespace: {{ .Release.Namespace }}
21+
labels:
22+
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
23+
{{- with .Values.ingress.annotations }}
24+
annotations:
25+
{{- toYaml . | nindent 4 }}
26+
{{- end }}
27+
spec:
28+
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
29+
ingressClassName: {{ .Values.ingress.className }}
30+
{{- end }}
31+
{{- if .Values.ingress.tls }}
32+
tls:
33+
{{- range .Values.ingress.tls }}
34+
- hosts:
35+
{{- range .hosts }}
36+
- {{ . | quote }}
37+
{{- end }}
38+
secretName: {{ .secretName }}
39+
{{- end }}
40+
{{- end }}
41+
rules:
42+
{{- range .Values.ingress.hosts }}
43+
- host: {{ .host | quote }}
44+
http:
45+
paths:
46+
{{- range .paths }}
47+
- path: {{ .path }}
48+
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
49+
pathType: {{ .pathType }}
50+
{{- end }}
51+
backend:
52+
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
53+
service:
54+
name: {{ $fullName }}
55+
port:
56+
number: {{ $svcPort }}
57+
{{- else }}
58+
serviceName: {{ $fullName }}
59+
servicePort: {{ $svcPort }}
60+
{{- end }}
61+
{{- end }}
62+
{{- end }}
63+
{{- end }}
64+
{{- end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.enabled }}
2+
{{- if .Values.volume.enabled -}}
3+
apiVersion: v1
4+
kind: PersistentVolumeClaim
5+
metadata:
6+
name: {{ include "jaeger-all-in-one.fullname" . }}
7+
namespace: {{ .Release.Namespace }}
8+
spec:
9+
{{- if .Values.volume.className }}
10+
storageClassName: {{ .Values.volume.className }}
11+
{{- end }}
12+
accessModes:
13+
- ReadWriteOnce
14+
resources:
15+
requests:
16+
storage: {{ .Values.volume.size }}
17+
{{- end }}
18+
{{- end }}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{{- if .Values.enabled }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: {{ include "jaeger-all-in-one.fullname" . }}-headless
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
9+
{{- with .Values.service.headless.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
spec:
14+
clusterIP: None
15+
ports:
16+
- port: 6831
17+
targetPort: udp-com-thr
18+
protocol: UDP
19+
name: udp-com-thr
20+
- port: 6832
21+
targetPort: udp-bin-thr
22+
protocol: UDP
23+
name: udp-bin-thr
24+
- port: 5775
25+
targetPort: udp-bin-thr-o
26+
protocol: UDP
27+
name: udp-bin-thr-o
28+
- port: 5778
29+
targetPort: http-configs
30+
protocol: TCP
31+
name: http-configs
32+
- port: {{ .Values.service.port }}
33+
targetPort: http-ui
34+
protocol: TCP
35+
name: http-ui
36+
- port: 14250
37+
targetPort: grpc-proto
38+
protocol: TCP
39+
name: grpc-proto
40+
- port: 14268
41+
targetPort: http-bin-thr
42+
protocol: TCP
43+
name: http-bin-thr
44+
- port: 14269
45+
targetPort: http-admin
46+
protocol: TCP
47+
name: http-admin
48+
{{- if .Values.enableHttpZipkinCollector }}
49+
- port: 9411
50+
targetPort: http-zipkin
51+
protocol: TCP
52+
name: http-zipkin
53+
{{- end }}
54+
selector:
55+
{{- include "jaeger-all-in-one.selectorLabels" . | nindent 4 }}
56+
{{- end }}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{{- if .Values.enabled }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: {{ include "jaeger-all-in-one.fullname" . }}
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{- include "jaeger-all-in-one.labels" . | nindent 4 }}
9+
{{- with .Values.service.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
spec:
14+
type: {{ .Values.service.type }}
15+
ports:
16+
- port: 6831
17+
targetPort: udp-com-thr
18+
protocol: UDP
19+
name: udp-com-thr
20+
- port: 6832
21+
targetPort: udp-bin-thr
22+
protocol: UDP
23+
name: udp-bin-thr
24+
- port: 5775
25+
targetPort: udp-bin-thr-o
26+
protocol: UDP
27+
name: udp-bin-thr-o
28+
- port: 5778
29+
targetPort: http-configs
30+
protocol: TCP
31+
name: http-configs
32+
- port: {{ .Values.service.port }}
33+
targetPort: http-ui
34+
protocol: TCP
35+
name: http-ui
36+
- port: 14250
37+
targetPort: grpc-proto
38+
protocol: TCP
39+
name: grpc-proto
40+
- port: 14268
41+
targetPort: http-bin-thr
42+
protocol: TCP
43+
name: http-bin-thr
44+
- port: 14269
45+
targetPort: http-admin
46+
protocol: TCP
47+
name: http-admin
48+
{{- if .Values.enableHttpZipkinCollector }}
49+
- port: 9411
50+
targetPort: http-zipkin
51+
protocol: TCP
52+
name: http-zipkin
53+
{{- end }}
54+
selector:
55+
{{- include "jaeger-all-in-one.selectorLabels" . | nindent 4 }}
56+
{{- end }}

0 commit comments

Comments
 (0)