-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jaeger v2 with v1 #613
Jaeger v2 with v1 #613
Changes from 13 commits
22c8ade
7212b86
9e73b35
0dd3924
f7db758
b980560
d9aa942
01d341b
ee12ee4
3012649
1ea257d
42c30a0
f247a95
647f7fa
8069914
742febb
b6bbc4b
7a24558
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{ if .Values.userconfig }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this file should be called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i used that only in the start but I got this error There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made this change to the template diff --git a/charts/jaeger/templates/allInOne-config.yaml b/charts/jaeger/templates/allInOne-config.yaml
index eca21f2..e473618 100644
--- a/charts/jaeger/templates/allInOne-config.yaml
+++ b/charts/jaeger/templates/allInOne-config.yaml
@@ -8,5 +8,5 @@ metadata:
{{- include "jaeger.labels" . | nindent 4 }}
data:
config.yaml: |
- {{ .Values.userconfig | nindent 8 }}
+ {{- .Values.userconfig | nindent 4 }}
{{- end }} created mock config file
and ran a test
which resulted in reasonably looking resource file: # Source: jaeger/templates/allInOne-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: jaeger-configmap
namespace: default
labels:
helm.sh/chart: jaeger-4.0.0
app.kubernetes.io/name: jaeger
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "2.0.0-rc2"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |
hello:
world: true |
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: jaeger-configmap | ||
namespace: {{ include "jaeger.namespace" . }} | ||
labels: | ||
{{- include "jaeger.labels" . | nindent 4 }} | ||
data: | ||
config.yaml: | | ||
{{ .Values.userconfig | nindent 8 }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,10 @@ spec: | |
imagePullPolicy: {{ .Values.allInOne.image.pullPolicy }} | ||
name: jaeger | ||
args: | ||
{{ if .Values.userconfig }} | ||
- "--config" | ||
- "/etc/jaeger/config.yaml" | ||
{{- end }} | ||
{{- range $arg := .Values.allInOne.args }} | ||
- "{{ tpl $arg $ }}" | ||
{{- end }} | ||
|
@@ -80,11 +84,13 @@ spec: | |
protocol: TCP | ||
- containerPort: 4318 | ||
protocol: TCP | ||
- containerPort: 13133 | ||
protocol: TCP | ||
livenessProbe: | ||
failureThreshold: 5 | ||
httpGet: | ||
path: / | ||
port: 14269 | ||
path: /status | ||
port: 13133 | ||
scheme: HTTP | ||
initialDelaySeconds: 5 | ||
periodSeconds: 15 | ||
|
@@ -93,8 +99,8 @@ spec: | |
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: / | ||
port: 14269 | ||
path: /status | ||
port: 13133 | ||
scheme: HTTP | ||
initialDelaySeconds: 1 | ||
periodSeconds: 10 | ||
|
@@ -105,6 +111,10 @@ spec: | |
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
volumeMounts: | ||
{{ if .Values.userconfig }} | ||
- name: jaeger-config | ||
mountPath: /etc/jaeger | ||
{{- end }} | ||
{{- if not .Values.storage.badger.ephemeral }} | ||
- name: badger-data | ||
mountPath: {{ .Values.storage.badger.persistence.mountPath }} | ||
|
@@ -123,6 +133,11 @@ spec: | |
{{- toYaml .Values.allInOne.podSecurityContext | nindent 8 }} | ||
serviceAccountName: {{ template "jaeger.fullname" . }} | ||
volumes: | ||
{{ if .Values.userconfig }} | ||
- name: jaeger-config | ||
configMap: | ||
name: jaeger-configmap | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please clean-up all the naming. Not jaeger-config, not jaeger-configmap, not There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done should i convert it to PR |
||
{{- end }} | ||
{{- if not .Values.storage.badger.ephemeral }} | ||
- name: badger-data | ||
persistentVolumeClaim: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
service: | ||
extensions: [jaeger_storage, jaeger_query, healthcheckv2] | ||
pipelines: | ||
traces: | ||
receivers: [otlp, jaeger, zipkin] | ||
processors: [batch] | ||
exporters: [jaeger_storage_exporter] | ||
|
||
extensions: | ||
healthcheckv2: | ||
use_v2: true | ||
http: | ||
endpoint: 0.0.0.0:13133 | ||
|
||
jaeger_query: | ||
storage: | ||
traces: primary_store | ||
traces_archive: archive_store | ||
|
||
jaeger_storage: | ||
backends: | ||
primary_store: | ||
memory: | ||
max_traces: 100000 | ||
archive_store: | ||
memory: | ||
max_traces: 100000 | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
jaeger: | ||
protocols: | ||
grpc: | ||
zipkin: | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
jaeger_storage_exporter: | ||
trace_storage: primary_store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is hard to read, please use the same formatting as in the deleted sections, one flag per line