Skip to content

Commit 38869c9

Browse files
committed
Restrict auto-mount of service account token in service account
1 parent 2cb43bc commit 38869c9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

charts/karpenter/templates/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
imagePullSecrets:
3636
{{- toYaml . | nindent 8 }}
3737
{{- end }}
38+
automountServiceAccountToken: true
3839
serviceAccountName: {{ include "karpenter.serviceAccountName" . }}
3940
{{- with .Values.podSecurityContext }}
4041
securityContext:

charts/karpenter/templates/serviceaccount.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ metadata:
1616
{{- end }}
1717
{{- end }}
1818
{{- end -}}
19+
automountServiceAccountToken: false

0 commit comments

Comments
 (0)