Update KubeExecutor pod templates to allow access to IAM permissions (#15669)

If AWS's Identity-based IAM policies are in use on the cluster they
token file will be mounted in to the pod (via the service account) and,
prior to this change, will be owned by root.

Specifying `fsGroup` makes the file group-readable by the `airflow`
user.

We already specify this in our helm chart, so this change is just for
anyone looking at the docs.
This commit is contained in:
Ash Berlin-Taylor authored and GitHub committed 2021-05-06 09:39:31 +01:00
1 parent 151ba3061d
commit 1024c922e6
3 files changed
+3

No files matched your search

@@ -65,6 +65,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
@@ -62,6 +62,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
@@ -86,6 +86,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity: