Add fsGroup to pod security context

Required for AWS IAM Role bindings

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-02-07 18:34:11 +02:00
parent 0465b122e5
commit e1ee5104e3
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ spec:
prometheus.io/port: "8080"
spec:
terminationGracePeriodSeconds: 10
# Required for AWS IAM Role bindings
# https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html
securityContext:
fsGroup: 1337
containers:
- name: manager
image: fluxcd/source-controller