Skip to content

Commit 2ae4eb9

Browse files
committed
sgx: use NodeFeatureRule SGX label in the NFD overlay
Our SGX README guides users to first deploy NFD and create NodeFeatureRules when sgx_plugin/overlays/epc-nfd is used. However, it turns out the "SGX enabled" label is not being used by the plugin DaemonSet. Use "intel.feature.node.kubernetes.io/sgx": "true" as the nodeSelector value when the kustomization overlay with NFD is used. Signed-off-by: Mikko Ylinen <[email protected]>
1 parent f9bc72f commit 2ae4eb9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

deployments/sgx_plugin/overlays/epc-nfd/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ resources:
22
- ../../base
33
- ../../../sgx_admissionwebhook/overlays/default-with-certmanager
44

5+
patches:
6+
- path: nfd_label.yaml
7+
target:
8+
name: intel-sgx-plugin
9+
510
apiVersion: kustomize.config.k8s.io/v1beta1
611
kind: Kustomization
712
replacements:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: intel-sgx-plugin
5+
spec:
6+
template:
7+
spec:
8+
nodeSelector:
9+
intel.feature.node.kubernetes.io/sgx: "true"

0 commit comments

Comments
 (0)