Commit 234f97f
committed
Set pod fsGroup for non-root JNLP SSH key access
We are moving to run jobs on Kubernetes containers instead of the Jenkins built-in node.
JNLP runs non-root(jenkins gid 1000) and could not read the SSH Secret mount.
Add pod securityContext fsGroup 1000 and fsGroupChangePolicy to every podTemplate
so JNLP can use mounted volumes. fsGroup lets the jenkins user read the SSH key
without running JNLP as root.
Signed-off-by: Noam Tsemah <ntsemah@nvidia.com>1 parent e279ab9 commit 234f97f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
905 | 908 | | |
906 | 909 | | |
907 | 910 | | |
| |||
1426 | 1429 | | |
1427 | 1430 | | |
1428 | 1431 | | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
1429 | 1435 | | |
1430 | 1436 | | |
1431 | 1437 | | |
| |||
1727 | 1733 | | |
1728 | 1734 | | |
1729 | 1735 | | |
1730 | | - | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
1731 | 1741 | | |
1732 | 1742 | | |
1733 | 1743 | | |
| |||
0 commit comments