Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
ccnp-device-plugin: update document for 1) TDX 1.5 support 2)corrent …
Browse files Browse the repository at this point in the history
…UDS (#154)

dir creation
  • Loading branch information
hairongchen authored Dec 11, 2023
1 parent 51a971d commit d367c27
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions device-plugin/ccnp-device-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@ of the plugin daemonset is based on the node label set by [Node Feature Discover
So we need to install the NFD and corresponding label rules.

1. setup following udev rule to enable other user in the node to read or write to tdx guest device node
For TDX 1.0 environment
```
cat /etc/udev/rules.d/90-tdx.rules
add in file /etc/udev/rules.d/90-tdx.rules
SUBSYSTEM=="misc",KERNEL=="tdx-guest",MODE="0666"
```
For TDX 1.5 environment
```
add in file /etc/udev/rules.d/90-tdx.rules
SUBSYSTEM=="misc",KERNEL=="tdx_guest",MODE="0666"
```
After adding the rule, you can restart the node or run following command to trigger the update:
```
Expand All @@ -38,7 +45,10 @@ udevadm trigger
2. prepare the shared Unix Domain Socket directory to be mounted to both ccnp service pods and workload pods
```
mkdir -p /run/ccnp/uds
chmod o+w /run/ccnp/uds
chmod 0757 /run/ccnp/uds
add in file /usr/lib/tmpfiles.d/ccnp.conf:
D /run/ccnp/uds 0757 - - -
```

3. deploy NFD
Expand Down

0 comments on commit d367c27

Please sign in to comment.