Skip to content

Commit

Permalink
Merge pull request #18 from NVIDIA/full-cluster-policy
Browse files Browse the repository at this point in the history
Use FQDN for cluster policy
  • Loading branch information
mikemckiernan authored Mar 4, 2024
2 parents d0e93d3 + dc1d77b commit 0bb1ef0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions gpu-operator/cdi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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*
Expand Down Expand Up @@ -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*
Expand Down
4 changes: 2 additions & 2 deletions gpu-operator/gpu-driver-upgrades.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]'
Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion gpu-operator/gpu-operator-confidential-containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}}'
Expand Down
4 changes: 2 additions & 2 deletions gpu-operator/gpu-sharing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}}}'
Expand Down Expand Up @@ -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"}}}}'
Expand Down
6 changes: 3 additions & 3 deletions gpu-operator/precompiled-drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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":"<driver-branch>"}
Expand Down Expand Up @@ -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*
Expand Down Expand Up @@ -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"}]'

0 comments on commit 0bb1ef0

Please sign in to comment.