forked from dodobrands/jaeger-kusto
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for KeylessAuth, Support for truncation limits and suppor…
…t for helm deployment (#6) * * Add support for multiple auth types * * Add support for no truncation * * Update kusto config * * Add helm charts, * * Add sample values file --------- Co-authored-by: Abhishek Saharn <[email protected]>
- Loading branch information
1 parent
13e4066
commit 88699ce
Showing
18 changed files
with
350 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ jaeger-kusto | |
.idea/ | ||
|
||
jaeger-kusto-config.json | ||
kompose | ||
build/server/helm/values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: kusto-jaeger-plugin | ||
description: A generated Helm Chart for kusto-jaeger-plugin | ||
version: 0.0.1 | ||
apiVersion: v2 | ||
keywords: | ||
- kusto-jaeger-plugin | ||
sources: | ||
home: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This chart was created by Kompose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.version: 1.33.0 (3ce457399) | ||
labels: | ||
io.kompose.service: jaeger | ||
name: jaeger | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: jaeger | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.version: 1.33.0 (3ce457399) | ||
labels: | ||
io.kompose.network/server-default: "true" | ||
io.kompose.service: jaeger | ||
spec: | ||
containers: | ||
- args: | ||
- --grpc-storage.server=kusto-jaeger-plugin:8989 | ||
- --grpc-storage.connection-timeout=60s | ||
- --grpc-storage.tls.enabled=false | ||
env: | ||
- name: SPAN_STORAGE_TYPE | ||
value: grpc-plugin | ||
image: jaegertracing/all-in-one:1.56 | ||
name: jaeger | ||
ports: | ||
- containerPort: 16686 | ||
hostPort: 16686 | ||
protocol: TCP | ||
- containerPort: 16687 | ||
hostPort: 16687 | ||
protocol: TCP | ||
restartPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kompose.version: 1.33.0 (3ce457399) | ||
labels: | ||
io.kompose.service: jaeger | ||
name: jaeger | ||
spec: | ||
ports: | ||
- name: "5775" | ||
port: 5775 | ||
protocol: UDP | ||
targetPort: 5775 | ||
- name: "6831" | ||
port: 6831 | ||
protocol: UDP | ||
targetPort: 6831 | ||
- name: "6832" | ||
port: 6832 | ||
protocol: UDP | ||
targetPort: 6832 | ||
- name: "5778" | ||
port: 5778 | ||
targetPort: 5778 | ||
- name: "16686" | ||
port: 16686 | ||
targetPort: 16686 | ||
- name: "14268" | ||
port: 14268 | ||
targetPort: 14268 | ||
- name: "14250" | ||
port: 14250 | ||
targetPort: 14250 | ||
selector: | ||
io.kompose.service: jaeger |
24 changes: 24 additions & 0 deletions
24
build/server/helm/templates/kusto-plugin-auth-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v1 | ||
data: | ||
jaeger-kusto-config.json: |- | ||
{ | ||
"clientId": {{ .Values.authConfig.clientId | quote}}, | ||
{{- if .Values.authConfig.clientSecret }} | ||
"clientSecret": {{ .Values.authConfig.clientSecret | quote}}, | ||
{{- end }} | ||
{{- if .Values.authConfig.traceTableName }} | ||
"traceTableName": {{ .Values.authConfig.traceTableName | quote}}, | ||
{{- end }} | ||
"useWorkloadIdentity": {{default false .Values.authConfig.useWorkloadIdentity }}, | ||
"useManagedIdentity": {{default false .Values.authConfig.useManagedIdentity}}, | ||
"database": {{ .Values.authConfig.database | quote}}, | ||
"endpoint": {{ .Values.authConfig.clusterUrl | quote}}, | ||
"tenantId": {{ .Values.authConfig.tenantId | quote}} | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
use-subpath: "true" | ||
labels: | ||
io.kompose.service: kusto-jaeger-plugin | ||
name: plugin-auth-config |
21 changes: 21 additions & 0 deletions
21
build/server/helm/templates/kusto-plugin-base-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
data: | ||
jaeger-kusto-plugin-config.json: |- | ||
{ | ||
"diagnosticsProfilingEnabled": false, | ||
"kustoConfigPath": "/config/jaeger-kusto-config.json", | ||
"tracingRPCMetrics": false, | ||
"logLevel": {{ .Values.baseConfig.logLevel | quote | default "info"}}, | ||
"logJson": {{ default true .Values.baseConfig.logJson }}, | ||
"remoteMode": {{ default true .Values.baseConfig.remoteMode }}, | ||
"tracingSamplerPercentage": {{ default 0.0 .Values.baseConfig.tracingSamplerPercentage }}, | ||
"readNoTruncation": {{ default false .Values.baseConfig.readNoTruncation }}, | ||
"readNoTimeout": {{ default false .Values.baseConfig.readNoTimeout }} | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
use-subpath: "true" | ||
labels: | ||
io.kompose.service: kusto-jaeger-plugin | ||
name: plugin-base-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
annotations: | ||
kompose.version: 1.33.0 (3ce457399) | ||
labels: | ||
io.kompose.network/server-default: "true" | ||
io.kompose.service: kusto-jaeger-plugin | ||
name: plugin | ||
spec: | ||
containers: | ||
- args: | ||
- --config=/config/jaeger-kusto-plugin-config.json | ||
env: | ||
- name: JAEGER_AGENT_HOST | ||
value: jaeger | ||
- name: JAEGER_AGENT_PORT | ||
value: "6831" | ||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
name: kusto-jaeger-plugin | ||
ports: | ||
- containerPort: 6060 | ||
hostPort: 6060 | ||
protocol: TCP | ||
- containerPort: 8989 | ||
hostPort: 8989 | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /config/jaeger-kusto-config.json | ||
name: plugin-auth-config | ||
subPath: jaeger-kusto-config.json | ||
- mountPath: /config/jaeger-kusto-plugin-config.json | ||
name: plugin-base-config | ||
subPath: jaeger-kusto-plugin-config.json | ||
restartPolicy: Never | ||
volumes: | ||
- configMap: | ||
items: | ||
- key: jaeger-kusto-config.json | ||
path: jaeger-kusto-config.json | ||
name: plugin-auth-config | ||
name: plugin-auth-config | ||
- configMap: | ||
items: | ||
- key: jaeger-kusto-plugin-config.json | ||
path: jaeger-kusto-plugin-config.json | ||
name: plugin-base-config | ||
name: plugin-base-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kompose.version: 1.33.0 (3ce457399) | ||
labels: | ||
io.kompose.service: kusto-jaeger-plugin | ||
name: kusto-jaeger-plugin | ||
spec: | ||
ports: | ||
- name: "6060" | ||
port: 6060 | ||
targetPort: 6060 | ||
- name: "8989" | ||
port: 8989 | ||
targetPort: 8989 | ||
selector: | ||
io.kompose.service: kusto-jaeger-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
image: | ||
repository: agramachandran/jaeger-kusto | ||
tag: 1.1.0-Preview | ||
pullPolicy: IfNotPresent | ||
baseConfig: | ||
logLevel: info | ||
logJson: true | ||
remoteMode: true | ||
readNoTruncation: true | ||
authConfig: | ||
clientId: | ||
useManagedIdentity: true | ||
database: | ||
clusterUrl: https://<cluster>.<region>.kusto.windows.net | ||
tenantId: | ||
traceTableName: OTELTraces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.