1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/rdma-creating-a-service-user.adoc
2025-06-08 23:26:02 +00:00

52 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * hardware_accelerators/rdma-remote-direct-memory-access.adoc
:_mod-docs-content-type: PROCEDURE
[id="rdma-creating-a-service-user_{context}"]
= Creating a service user
This section describes how to create a service account and user privileges for NVIDIA GPUDirect RDMA.
.Procedure
. Generate a service account CRD to use in the `default` namespace:
+
[source,terminal]
----
apiVersion: v1
kind: ServiceAccount
metadata:
name: rdma
namespace: default
----
. Create the account on your cluster by running the following command:
+
[source,terminal]
----
$ oc create -f default-serviceaccount.yaml
----
+
.Example output
[source,terminal]
----
serviceaccount/rdma created
----
. Add user privileges to the account by running the following command:
+
[source,terminal]
----
$ oc -n default adm policy add-scc-to-user privileged -z rdma
----
+
.Example output
[source,terminal]
----
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:privileged added: "rdma"
----