@@ -27,7 +27,7 @@ cleanup()
27
27
out ' Cleanup demo artifacts' 20
28
28
out ' delete node-feature-discovery deployment:' 20
29
29
command ' kubectl delete -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules?ref=main || true' 20
30
- command ' kubectl delete -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/sgx ?ref=main || true' 20
30
+ command ' kubectl delete -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd?ref=main || true' 20
31
31
out ' delete SGX Device Plugin deployment:' 20
32
32
command ' kubectl delete sgxdeviceplugin sgxdeviceplugin-sample || true' 20
33
33
out ' delete Intel Device Plugin Operator deployment:' 20
@@ -69,10 +69,10 @@ screen3()
69
69
clear
70
70
out " 2. Deploy node-feature-discovery for Kubernetes"
71
71
out " It's used to label SGX capable nodes and register SGX EPC as an extended resource"
72
- command " kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/sgx ?ref=main"
72
+ command " kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd?ref=main"
73
73
out " Check its pod is running"
74
74
command " kubectl wait --for=condition=Ready pod/$( kubectl get --no-headers -l app=nfd-worker -o=jsonpath=' {.items[0].metadata.name}' pods -n node-feature-discovery) -n node-feature-discovery"
75
- out " Create NodeFeatureRules for SGX specific labels"
75
+ out " Create NodeFeatureRules for SGX specific labels and SGX EPC extended resource "
76
76
command ' kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/nfd/overlays/node-feature-rules?ref=main || true' 20
77
77
}
78
78
@@ -91,8 +91,8 @@ screen5()
91
91
{
92
92
clear
93
93
out " 4. Verify node resources"
94
- command " kubectl get nodes -o json | jq .items[].status.allocatable | grep sgx"
95
- command " kubectl get nodes -o json | jq .items[].metadata.labels | grep sgx"
94
+ command " kubectl get nodes -o jsonpath='{ .items[].status.allocatable}' | jq | grep sgx"
95
+ command " kubectl get nodes -o jsonpath='{ .items[].metadata.labels}' | jq | grep kubernetes.io\/ sgx"
96
96
out " Both node labels and resources for SGX are in place"
97
97
}
98
98
@@ -104,7 +104,10 @@ screen6()
104
104
command " sudo ctr -n k8s.io i import sgx-aesmd.tar"
105
105
command " sudo ctr -n k8s.io i import sgx-demo.tar"
106
106
out " Deploy Intel(R) AESMD"
107
- command " kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_aesmd?ref=main -n sgx-ecdsa-quote"
107
+ pushd ../deployments/sgx_aesmd/base
108
+ jq --arg pccs_url " $PCCS_URL " ' .pccs_url = $pccs_url' sgx_default_qcnl.template > sgx_default_qcnl.conf
109
+ command " kubectl apply -k . -n sgx-ecdsa-quote"
110
+ popd
108
111
out " Deploy Intel(R) SGX DCAP ECDSA Quote Generation"
109
112
command " kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_enclave_apps/overlays/sgx_ecdsa_aesmd_quote?ref=main -n sgx-ecdsa-quote"
110
113
command " kubectl logs $( kubectl get --no-headers -l job-name=ecdsa-quote-intelsgx-demo-job -o=jsonpath=' {.items[0].metadata.name}' pods -n sgx-ecdsa-quote) -n sgx-ecdsa-quote"
@@ -117,11 +120,14 @@ screen6()
117
120
screen7 ()
118
121
{
119
122
clear
120
- out " 6. Run Intel(R) SGX DCAP ECDSA Quote Generation (in-proc)"
121
- out " Deploy Intel(R) SGX DCAP ECDSA Quote Generation"
122
- command " kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_enclave_apps/overlays/sgx_ecdsa_inproc_quote?ref=main -n sgx-ecdsa-quote"
123
+ out " 6. Run Intel(R) SGX DCAP ECDSA Quote Generation (in-proc) and Trusted Quote Verification"
124
+ out " Deploy Intel(R) SGX DCAP ECDSA DCAP Flow"
125
+ pushd ../deployments/sgx_enclave_apps/overlays/sgx_ecdsa_inproc_quote
126
+ jq --arg pccs_url " $PCCS_URL " ' .pccs_url = $pccs_url' sgx_default_qcnl.template > sgx_default_qcnl.conf
127
+ command " kubectl apply -k . -n sgx-ecdsa-quote"
128
+ popd
123
129
command " kubectl logs $( kubectl get --no-headers -l job-name=inproc-ecdsa-quote-intelsgx-demo-job -o=jsonpath=' {.items[0].metadata.name}' pods -n sgx-ecdsa-quote) -n sgx-ecdsa-quote"
124
- out " Intel(R) SGX DCAP QuoteGenerationSample successfully generated a quote using DCAP Quote Provider Library"
130
+ out " Intel(R) SGX DCAP QuoteGenerationSample successfully generated and verified a quote using DCAP Quote Provider Library"
125
131
out " Delete the deployment"
126
132
command " kubectl delete -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/sgx_enclave_apps/overlays/sgx_ecdsa_inproc_quote?ref=main -n sgx-ecdsa-quote"
127
133
}
@@ -134,6 +140,7 @@ screen8()
134
140
out " * SGX Kubernetes* Device Plugin deployment with an Operator"
135
141
out " * Intel(R) SGX node resource and feature label registration to Kubernetes*"
136
142
out " * Intel(R) SGX DCAP ECDSA Quote Generation (out-of-proc and in-proc)"
143
+ out " * Intel(R) SGX DCAP ECDSA Trusted Quote Verification"
137
144
}
138
145
139
146
if [ " $1 " == ' play' ] ; then
0 commit comments