Managing the Confidential Computing Mode
As a Kubernetes Cluster Administrator, use this page to configure the confidential computing mode of NVIDIA GPUs in your cluster.
After installing the NVIDIA GPU Operator, you can use the GPU Operator to configure the confidential computing mode of the NVIDIA GPUs in your cluster. You can set a cluster-wide default Confidential Computing mode, and you can set the mode on individual nodes.
Enabling Confidential Computing mode configures the GPU hardware boundary. It does not by itself cryptographically verify the confidential environment or release secrets to a workload. Confidentiality is established by attestation. Refer to Attestation.
Set the cluster-wide default mode using the ccManager.defaultMode=<on|off> option.
The default value of ccManager.defaultMode is on.
Set a node-level mode by applying the nvidia.com/cc.mode=<on|off|ppcie> label on the node.
If you set a specific mode on a node, it has higher precedence than the cluster-wide default mode.
The supported modes are:
When you change the mode, the manager performs the following actions:
-
Evicts the other GPU Operator operands from the node. However, the manager does not drain user workloads. You must make sure that no user workloads are running on the node before you change the mode.
-
Changes the mode and resets the GPU.
-
Reschedules the other GPU Operator operands.
Setting a Cluster-Wide Default Mode
Before changing the mode, make sure that no user workloads are running on the node.
To set a cluster-wide mode, specify the ccManager.defaultMode field like the following example:
Example Output:
The ppcie mode cannot be set as a cluster-wide default, it can only be set as a node label value.
Setting a Node-Level Mode
To set a node-level mode, apply the nvidia.com/cc.mode=<on|off|ppcie> label on the node.
Set the NODE_NAME environment variable to the name of the node you want to configure:
Then apply the label:
Example Output:
For NVIDIA Hopper GPUs used in multi-GPU passthrough, set ppcie instead of on:
The mode that you set on a node has higher precedence than the cluster-wide default mode.
Verifying a Mode Change
To verify that a mode change was successful, view the nvidia.com/cc.mode,
nvidia.com/cc.mode.state, and nvidia.com/cc.ready.state node labels:
Example Output (CC mode disabled):
Example Output (CC mode enabled):
To wait for an enable transition (on or ppcie) to finish instead of polling the labels by hand, block until the node reports ready:
Example Output:
The loop exits when nvidia.com/cc.ready.state becomes true, which the Confidential Computing Manager sets after the mode transition completes for on or ppcie.
When you disable CC mode after enabling it, wait one to two minutes for
nvidia.com/cc.mode.state and nvidia.com/cc.ready.state to match the desired off state.
A mode change is complete and successful when nvidia.com/cc.mode and
nvidia.com/cc.mode.state have the same value.
If nvidia.com/cc.mode.state does not match nvidia.com/cc.mode, refer to nvidia.com/cc.mode.state Not Matching nvidia.com/cc.mode in the troubleshooting guide.
If nvidia.com/cc.mode.state is failed, refer to nvidia.com/cc.mode.state is failed.
Understanding Confidential Computing Mode Labels
The following labels are used to manage the Confidential Computing mode on a node.
You only need to update the nvidia.com/cc.mode label, the other labels are managed by the Confidential Computing Manager to represent the current state of the Confidential Computing mode on the node.
The ppcie mode is only supported on NVIDIA Hopper GPUs.