deployments: fix kubectl SGX w/ NFD instructions

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
Mikko Ylinen 2023-02-22 11:44:30 +02:00
parent 4d96c1b49d
commit 1090c12c74
2 changed files with 6 additions and 4 deletions

View File

@ -113,9 +113,13 @@ The first approach involves deployment of the [SGX DaemonSet YAML](/deployments/
and [node-feature-discovery](/deployments/nfd/overlays/sgx/kustomization.yaml) and [node-feature-discovery](/deployments/nfd/overlays/sgx/kustomization.yaml)
with the necessary configuration. with the necessary configuration.
There is a kustomization for deploying everything: The following kustomizations are needed for deploying everything:
```bash ```bash
$ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_plugin/overlays/epc-nfd/ # first, deploy NFD and the necessary NodeFeatureRules
$ kubectl apply -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/sgx'
$ kubectl apply -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules'
# and then, deploy SGX plugin
$ kubectl apply -k 'https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_plugin/overlays/epc-nfd/'
``` ```
The second approach has a lesser deployment footprint. It does not require NFD, but a helper daemonset that creates `sgx.intel.com/capable='true'` node label and advertises EPC capacity to the API server. The second approach has a lesser deployment footprint. It does not require NFD, but a helper daemonset that creates `sgx.intel.com/capable='true'` node label and advertises EPC capacity to the API server.

View File

@ -1,7 +1,5 @@
bases: bases:
- ../../base - ../../base
- ../../../nfd/overlays/sgx
- ../../../nfd/overlays/node-feature-rules
- ../../../sgx_admissionwebhook/overlays/default-with-certmanager - ../../../sgx_admissionwebhook/overlays/default-with-certmanager
patches: patches:
- path: add-epc-nfd-initcontainer.yaml - path: add-epc-nfd-initcontainer.yaml