diff --git a/gpu-operator/cdi.rst b/gpu-operator/cdi.rst index 13130e3f3..00038bcda 100644 --- a/gpu-operator/cdi.rst +++ b/gpu-operator/cdi.rst @@ -103,7 +103,7 @@ To enable CDI support, perform the following steps: .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[{"op": "replace", "path": "/spec/cdi/enabled", "value":true}]' *Example Output* @@ -116,7 +116,7 @@ To enable CDI support, perform the following steps: .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[{"op": "replace", "path": "/spec/cdi/default", "value":true}]' *Example Output* @@ -174,7 +174,7 @@ To disable CDI support, perform the following steps: .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[{"op": "replace", "path": "/spec/cdi/enabled", "value":false}]' *Example Output* diff --git a/gpu-operator/gpu-driver-upgrades.rst b/gpu-operator/gpu-driver-upgrades.rst index 46bf2e904..ce02f05c8 100644 --- a/gpu-operator/gpu-driver-upgrades.rst +++ b/gpu-operator/gpu-driver-upgrades.rst @@ -65,7 +65,7 @@ The controller automates the upgrade process and generates metrics and events so .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy \ --type='json' \ -p='[{"op": "replace", "path": "/spec/driver/version", "value":"510.85.02"}]' @@ -292,7 +292,7 @@ In addition, no new features will be added to the ``k8s-driver-manager`` moving .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' -p='[{"op": "replace", "path": "/spec/driver/version", "value":"510.85.02"}]' + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' -p='[{"op": "replace", "path": "/spec/driver/version", "value":"510.85.02"}]' 2. (Optional) To monitor the status of the upgrade, watch the deployment of the new driver pod on GPU worker nodes: diff --git a/gpu-operator/gpu-operator-confidential-containers.rst b/gpu-operator/gpu-operator-confidential-containers.rst index 299a75843..dc3b6f980 100644 --- a/gpu-operator/gpu-operator-confidential-containers.rst +++ b/gpu-operator/gpu-operator-confidential-containers.rst @@ -528,7 +528,7 @@ To set a cluster-wide mode, specify the ``ccManager.defaultMode`` field like the .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy \ -p '{"spec": {"ccManager": {"defaultMode": "on"}}}' diff --git a/gpu-operator/gpu-sharing.rst b/gpu-operator/gpu-sharing.rst index 4553e5ebd..6b2fc4e2d 100644 --- a/gpu-operator/gpu-sharing.rst +++ b/gpu-operator/gpu-sharing.rst @@ -250,7 +250,7 @@ and want to apply the same time-slicing configuration on all nodes in the cluste .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy \ -n gpu-operator --type merge \ -p '{"spec": {"devicePlugin": {"config": {"name": "time-slicing-config-all", "default": "any"}}}}' @@ -292,7 +292,7 @@ control which configuration is applied to which nodes. .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy \ -n gpu-operator --type merge \ -p '{"spec": {"devicePlugin": {"config": {"name": "time-slicing-config-fine"}}}}' diff --git a/gpu-operator/precompiled-drivers.rst b/gpu-operator/precompiled-drivers.rst index 68581d182..534a4e447 100644 --- a/gpu-operator/precompiled-drivers.rst +++ b/gpu-operator/precompiled-drivers.rst @@ -143,7 +143,7 @@ Perform the following steps to enable support for precompiled driver containers: .. code-block:: shell - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[ {"op":"replace", "path":"/spec/driver/usePrecompiled", "value":true}, {"op":"replace", "path":"/spec/driver/version", "value":""} @@ -193,7 +193,7 @@ Perform the following steps to disable support for precompiled driver containers .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[{"op": "replace", "path": "/spec/driver/usePrecompiled", "value":false}]' *Example Output* @@ -334,5 +334,5 @@ you can perform the following steps to build and run a container image. .. code-block:: console - $ kubectl patch clusterpolicy/cluster-policy --type='json' \ + $ kubectl patch clusterpolicies.nvidia.com/cluster-policy --type='json' \ -p='[{"op": "replace", "path": "/spec/driver/repository", "value":"$PRIVATE_REGISTRY"}]' \ No newline at end of file