-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows autopilot containers to run privileged for nvidia-smi
Because of our use of ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED=false, we set privileged=true for the autopilot service account so it can load the NVIDIA tools like nvidia-smi to check on the GPU health, without actually claiming the GPU.
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
autopilot/base/clusterrolebindings/autopilot-privileged.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: autopilot-privileged | ||
namespace: autopilot | ||
subjects: | ||
- kind: ServiceAccount | ||
name: autopilot | ||
namespace: autopilot | ||
roleRef: | ||
kind: ClusterRole | ||
name: system:openshift:scc:privileged | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters