You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubernetes_scheduler: add service_account runopt so users can specify per job acls + log fix (#408)
Summary:
Fixes#406
This adds a new `service_account` runopt that sets the `service_account_name` on the pod spec of each pod.
https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1PodSpec.md
It also fixes a small bug when fetching logs w/ `_` in the role name.
Pull Request resolved: #408
Test Plan:
added unit tests
```
torchx run --scheduler kubernetes -c service_account=default --wait --log dist.ddp --script dist_app.py -j 1x1
```
Reviewed By: kiukchung
Differential Revision: D34662471
Pulled By: d4l3k
fbshipit-source-id: d963229eff274e8ce58ec2fdba540b5fa35d85f8
0 commit comments