Skip to content

Commit b836ad8

Browse files
authored
Merge pull request #37 from appian/addSecurityContext
[jaeger] Add security context to deployment charts in jaeger
2 parents cdc19c9 + d5cd4b5 commit b836ad8

8 files changed

Lines changed: 35 additions & 1 deletion

File tree

charts/jaeger/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 1.16.0
33
description: A Jaeger Helm chart for Kubernetes
44
name: jaeger
5-
version: 0.19.0
5+
version: 0.19.1
66
keywords:
77
- jaeger
88
- opentracing

charts/jaeger/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ The following table lists the configurable parameters of the Jaeger chart and th
185185
| `<component>.nodeSelector` | Node selector | {} |
186186
| `<component>.tolerations` | Node tolerations | [] |
187187
| `<component.affinity` | Affinity | {} |
188+
| `<component>.podSecurityContext` | Pod security context | {} |
189+
| `<component>.securityContext` | Container security context | {} |
188190
| `agent.annotations` | Annotations for Agent | `nil` |
189191
| `agent.cmdlineParams` |Additional command line parameters| `nil` |
190192
| `agent.dnsPolicy` | Configure DNS policy for agents | `ClusterFirst` |

charts/jaeger/templates/agent-ds.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ spec:
2828
{{ toYaml .Values.agent.podLabels | indent 8 }}
2929
{{- end }}
3030
spec:
31+
securityContext:
32+
{{ toYaml .Values.agent.podSecurityContext | indent 8 }}
3133
{{- if .Values.agent.useHostNetwork }}
3234
hostNetwork: true
3335
{{- end }}
3436
dnsPolicy: {{ .Values.agent.dnsPolicy }}
3537
serviceAccountName: {{ template "jaeger.agent.serviceAccountName" . }}
3638
containers:
3739
- name: {{ template "jaeger.agent.name" . }}
40+
securityContext:
41+
{{ toYaml .Values.agent.securityContext | indent 10 }}
3842
image: {{ .Values.agent.image }}:{{ .Values.tag }}
3943
imagePullPolicy: {{ .Values.agent.pullPolicy }}
4044
env:

charts/jaeger/templates/collector-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ spec:
3434
{{ toYaml .Values.collector.podLabels | indent 8 }}
3535
{{- end }}
3636
spec:
37+
securityContext:
38+
{{ toYaml .Values.collector.podSecurityContext | indent 8 }}
3739
serviceAccountName: {{ template "jaeger.collector.serviceAccountName" . }}
3840
containers:
3941
- name: {{ template "jaeger.collector.name" . }}
42+
securityContext:
43+
{{ toYaml .Values.collector.securityContext | indent 10 }}
4044
image: {{ .Values.collector.image }}:{{ .Values.tag }}
4145
imagePullPolicy: {{ .Values.collector.pullPolicy }}
4246
env:

charts/jaeger/templates/hotrod-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ spec:
1818
{{- include "jaeger.selectorLabels" . | nindent 8 }}
1919
app.kubernetes.io/component: hotrod
2020
spec:
21+
securityContext:
22+
{{ toYaml .Values.hotrod.podSecurityContext | indent 8 }}
2123
serviceAccountName: {{ template "jaeger.hotrod.serviceAccountName" . }}
2224
containers:
2325
- name: {{ include "jaeger.fullname" . }}-hotrod
26+
securityContext:
27+
{{ toYaml .Values.hotrod.securityContext | indent 12 }}
2428
image: {{ .Values.hotrod.image.repository }}:{{ .Values.tag }}
2529
imagePullPolicy: {{ .Values.hotrod.image.pullPolicy }}
2630
env:

charts/jaeger/templates/ingester-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ spec:
3333
{{ toYaml .Values.ingester.podLabels | indent 8 }}
3434
{{- end }}
3535
spec:
36+
securityContext:
37+
{{ toYaml .Values.ingester.podSecurityContext | indent 8 }}
3638
nodeSelector:
3739
{{ toYaml .Values.ingester.nodeSelector | indent 8 }}
3840
{{- if .Values.ingester.tolerations }}
@@ -41,6 +43,8 @@ spec:
4143
{{- end }}
4244
containers:
4345
- name: {{ include "jaeger.fullname" . }}-ingester
46+
securityContext:
47+
{{ toYaml .Values.ingester.securityContext | indent 10 }}
4448
image: {{ .Values.ingester.image }}:{{ .Values.tag }}
4549
imagePullPolicy: {{ .Values.ingester.pullPolicy }}
4650
env:

charts/jaeger/templates/query-deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ spec:
3131
{{ toYaml .Values.query.podLabels | indent 8 }}
3232
{{- end }}
3333
spec:
34+
securityContext:
35+
{{ toYaml .Values.query.podSecurityContext | indent 8 }}
3436
serviceAccountName: {{ template "jaeger.query.serviceAccountName" . }}
3537
containers:
3638
- name: {{ template "jaeger.query.name" . }}
39+
securityContext:
40+
{{ toYaml .Values.query.securityContext | indent 10 }}
3741
image: {{ .Values.query.image }}:{{ .Values.tag }}
3842
imagePullPolicy: {{ .Values.query.pullPolicy }}
3943
env:
@@ -134,6 +138,8 @@ spec:
134138
port: admin
135139
{{- if .Values.query.agentSidecar.enabled }}
136140
- name: {{ template "jaeger.agent.name" . }}-sidecar
141+
securityContext:
142+
{{ toYaml .Values.query.securityContext | indent 10 }}
137143
image: {{ .Values.agent.image }}:{{ .Values.tag }}
138144
imagePullPolicy: {{ .Values.agent.pullPolicy }}
139145
env:

charts/jaeger/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ elasticsearch: {}
100100

101101
ingester:
102102
enabled: false
103+
podSecurityContext: {}
104+
securityContext: {}
103105
annotations: {}
104106
image: jaegertracing/jaeger-ingester
105107
pullPolicy: IfNotPresent
@@ -138,6 +140,8 @@ ingester:
138140
extraConfigmapMounts: []
139141

140142
agent:
143+
podSecurityContext: {}
144+
securityContext: {}
141145
enabled: true
142146
annotations: {}
143147
image: jaegertracing/jaeger-agent
@@ -191,6 +195,8 @@ agent:
191195
dnsPolicy: ClusterFirst
192196

193197
collector:
198+
podSecurityContext: {}
199+
securityContext: {}
194200
enabled: true
195201
annotations: {}
196202
image: jaegertracing/jaeger-collector
@@ -279,6 +285,8 @@ collector:
279285

280286
query:
281287
enabled: true
288+
podSecurityContext: {}
289+
securityContext: {}
282290
agentSidecar:
283291
enabled: true
284292
annotations: {}
@@ -360,6 +368,8 @@ spark:
360368

361369
hotrod:
362370
enabled: false
371+
podSecurityContext: {}
372+
securityContext: {}
363373
replicaCount: 1
364374
image:
365375
repository: jaegertracing/example-hotrod

0 commit comments

Comments
 (0)