Skip to content

Commit

Permalink
Merge branch 'prereq-psa' into 'master'
Browse files Browse the repository at this point in the history
Add prereq to label ns for PSA

See merge request nvidia/cloud-native/cnt-docs!314
  • Loading branch information
mikemckiernan committed Sep 1, 2023
2 parents d700700 + 2626ba1 commit 4e040d2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions gpu-operator/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ Before installing the GPU Operator, you should ensure that the Kubernetes cluste

#. Nodes must be configured with a container engine such as Docker CE/EE, ``cri-o``, or ``containerd``. For **docker**, follow the official install
`instructions <https://docs.docker.com/engine/install/>`_.

#. If your cluster uses Pod Security Admission (PSA) to restrict the behavior of pods,
label the namespace for the Operator to set the enforcement policy to privileged:

.. code-block:: console
$ kubectl create ns gpu-operator
$ kubectl label --overwrite ns gpu-operator pod-security.kubernetes.io/enforce=privileged
#. Node Feature Discovery (NFD) is a dependency for the Operator on each node.
By default, NFD master and worker are automatically deployed by the Operator.
If NFD is already running in the cluster, then you must disable deploying NFD when you install the Operator.
Expand Down Expand Up @@ -300,6 +309,17 @@ to complete the installation.
Upgrading the GPU Operator
==========================

Prerequisites
-------------

- If your cluster uses Pod Security Admission (PSA) to restrict the behavior of pods,
label the namespace for the Operator to set the enforcement policy to privileged:

.. code-block:: console
$ kubectl label --overwrite ns gpu-operator pod-security.kubernetes.io/enforce=privileged
Using Helm
-----------

Expand Down

0 comments on commit 4e040d2

Please sign in to comment.