Skip to content

Commit 22b7b23

Browse files
Inject Pod and Container Security Context (#137)
* Inject Pod and Container Security Context * remove kafka-topic-creator sub chart --------- Co-authored-by: Ravi Singal <[email protected]>
1 parent b6894eb commit 22b7b23

File tree

4 files changed

+7
-45
lines changed

4 files changed

+7
-45
lines changed

helm/Chart.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,3 @@ version: 0.1.0
2424
# This is the appVersion which will correspond to build version tag. The "helm package" command will take care of setting
2525
# this.
2626
appVersion: 0.1.0
27-
28-
dependencies:
29-
- name: kafka-topic-creator
30-
condition: kafka-topic-creator.enabled
31-
repository: "https://storage.googleapis.com/hypertrace-helm-charts"
32-
version: 0.2.x

helm/templates/hypertrace-collector/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ spec:
9393
port: 13133
9494
resources:
9595
{{- toYaml .Values.resources | nindent 12 }}
96-
{{- with .Values.securityContext }}
96+
{{- with .Values.containerSecurityContext }}
9797
securityContext:
9898
{{- toYaml . | nindent 12 }}
9999
{{- end }}

helm/templates/hypertrace-metrics-collector/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
port: 13133
9595
resources:
9696
{{- toYaml .Values.metrics.resources | nindent 12 }}
97-
{{- with .Values.metrics.securityContext }}
97+
{{- with .Values.containerSecurityContext }}
9898
securityContext:
9999
{{- toYaml . | nindent 12 }}
100100
{{- end }}

helm/values.yaml

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,18 @@ podAnnotations: {}
100100
podSecurityContext:
101101
runAsUser: 65532
102102
fsGroup: 65532
103+
runAsNonRoot: true
104+
fsGroupChangePolicy: "OnRootMismatch"
105+
seccompProfile:
106+
type: RuntimeDefault
103107

104-
securityContext:
108+
containerSecurityContext:
105109
allowPrivilegeEscalation: false
106110
capabilities:
107111
drop:
108112
- ALL
109113
add:
110114
- NET_BIND_SERVICE
111-
runAsNonRoot: true
112-
seccompProfile:
113-
type: RuntimeDefault
114115

115116
affinity: {}
116117

@@ -211,21 +212,6 @@ metrics:
211212

212213
podAnnotations: {}
213214

214-
podSecurityContext:
215-
runAsUser: 65532
216-
fsGroup: 65532
217-
218-
securityContext:
219-
allowPrivilegeEscalation: false
220-
capabilities:
221-
drop:
222-
- ALL
223-
add:
224-
- NET_BIND_SERVICE
225-
runAsNonRoot: true
226-
seccompProfile:
227-
type: RuntimeDefault
228-
229215
affinity: {}
230216

231217
hostNetwork: false
@@ -383,21 +369,3 @@ configMap:
383369
receivers: [otlp]
384370
processors: [filter/metrics, hypertrace_metrics_remover, batch, hypertrace_metrics_resource_attrs_to_attrs]
385371
exporters: [prometheus]
386-
387-
kafka-topic-creator:
388-
enabled: true
389-
jobName: jaeger-spans-kafka-topic-creator
390-
helmHook: pre-install,pre-upgrade
391-
kafka:
392-
topics:
393-
jaeger-spans:
394-
replicationFactor: 1
395-
partitions: 8
396-
configs:
397-
retention.bytes: 4294967296
398-
retention.ms: 86400000
399-
zookeeper:
400-
address: zookeeper:2181
401-
imagePullSecrets: []
402-
podAnnotations:
403-
sidecar.istio.io/inject: "false"

0 commit comments

Comments
 (0)