Skip to content

Commit

Permalink
Update KubeExecutor pod templates to allow access to IAM permissions (a…
Browse files Browse the repository at this point in the history
…pache#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.
  • Loading branch information
ashb authored May 6, 2021
1 parent 151ba30 commit 1024c92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ spec:
restartPolicy: Never
securityContext:
runAsUser: 50000
fsGroup: 50000
nodeSelector:
{}
affinity:
Expand Down

0 comments on commit 1024c92

Please sign in to comment.