Skip to content

Commit

Permalink
[jaeger] add new options, improvements into allInOne (#586)
Browse files Browse the repository at this point in the history
* [jaeger] allInOne add option automountServiceAccountToken for serviceaccount

Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com>

* [jaeger] allInOne add affinity support

Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com>

* [jaeger] allInOne add topologySpreadConstraints support

Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com>

* [jaeger] allInOne add podSecurityContext and containerSecurityContext support

Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com>

---------

Signed-off-by: Reddysekhar Gaduputi <gsekhar73@gmail.com>
  • Loading branch information
rgaduput committed Jun 26, 2024
1 parent f4213e2 commit 1dca639
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/jaeger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.53.0
description: A Jaeger Helm chart for Kubernetes
name: jaeger
type: application
version: 3.0.10
version: 3.1.0
# CronJobs require v1.21
kubeVersion: ">= 1.21-0"
keywords:
Expand Down
14 changes: 11 additions & 3 deletions charts/jaeger/templates/allinone-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ spec:
{{- with .Values.allInOne.envFrom }}
envFrom: {{- toYaml . | nindent 12 }}
{{- end }}
securityContext:
{{- toYaml .Values.allInOne.securityContext | nindent 12 }}
image: {{ include "allInOne.image" . }}
imagePullPolicy: {{ .Values.allInOne.image.pullPolicy }}
name: jaeger
Expand Down Expand Up @@ -118,9 +120,7 @@ spec:
readOnly: {{ .readOnly }}
{{- end }}
securityContext:
runAsUser: 10001
runAsGroup: 10001
fsGroup: 10001
{{- toYaml .Values.allInOne.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "jaeger.fullname" . }}
volumes:
{{- if not .Values.storage.badger.ephemeral }}
Expand All @@ -138,6 +138,14 @@ spec:
secret:
secretName: {{ .secretName }}
{{- end }}
{{- with .Values.allInOne.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.allInOne.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.allInOne.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/jaeger/templates/allinone-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.allInOne.serviceAccount.automountServiceAccountToken }}
{{- end -}}
8 changes: 8 additions & 0 deletions charts/jaeger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ allInOne:
# }
serviceAccount:
annotations: {}
automountServiceAccountToken: true
service:
headless: true
collector:
Expand Down Expand Up @@ -86,6 +87,13 @@ allInOne:
# cpu: 256m
# memory: 128Mi
nodeSelector: {}
affinity: {}
topologySpreadContraints: []
podSecurityContext:
runAsUser: 10001
runAsGroup: 10001
fsGroup: 10001
securityContext: {}

storage:
# allowed values (cassandra, elasticsearch, grpc-plugin, badger, memory)
Expand Down

0 comments on commit 1dca639

Please sign in to comment.