1- ---
2- apiVersion : apps/v1
31kind : DaemonSet
42metadata :
53 name : tdx-qgs
64 namespace : intel-dcap
7- annotations :
8- argocd.argoproj.io/sync-wave : " 2"
95spec :
106 selector :
117 matchLabels :
@@ -16,35 +12,75 @@ spec:
1612 app : tdx-qgs
1713 annotations :
1814 sgx.intel.com/quote-provider : tdx-qgs
15+ qcnl-conf : ' {"pccs_url": "https://pccs-service:8042/sgx/certification/v4/", "use_secure_cert": false, "pck_cache_expire_hours": 168}'
1916 spec :
20- serviceAccountName : tdx-qgs-service-account
2117 nodeSelector :
2218 intel.feature.node.kubernetes.io/tdx : ' true'
2319 hostNetwork : true
2420 dnsPolicy : ClusterFirstWithHostNet
21+ initContainers :
22+ - name : platform-registration
23+ image : registry.redhat.io/openshift-sandboxed-containers/osc-tdx-qgs@sha256:2f8a49c51af8d801d0bc5a9ef4808afe5b6cc79157a1c618a0f8b3025b56d290
24+ restartPolicy : Always
25+ command : [ '/usr/bin/dcap-registration-flow' ]
26+ env :
27+ - name : PCCS_URL
28+ value : " https://pccs-service:8042"
29+ - name : SECURE_CERT
30+ value : ' false'
31+ envFrom :
32+ - secretRef :
33+ name : pccs-secrets
34+ securityContext :
35+ readOnlyRootFilesystem : true
36+ allowPrivilegeEscalation : true
37+ privileged : true
38+ capabilities :
39+ drop :
40+ - ALL
41+ add :
42+ - LINUX_IMMUTABLE
43+ volumeMounts :
44+ - name : efivars
45+ mountPath : /sys/firmware/efi/efivars
2546 containers :
2647 - name : tdx-qgs
27- image : quay.io/openshift_sandboxed_containers/dcap/tdx-qgs:0.2.0
28- workingDir : /opt/intel/tdx-qgs
48+ image : registry.redhat.io/openshift-sandboxed-containers/osc-tdx-qgs@sha256:2f8a49c51af8d801d0bc5a9ef4808afe5b6cc79157a1c618a0f8b3025b56d290
49+ args :
50+ - -p=4050
51+ - -n=4
2952 securityContext :
3053 readOnlyRootFilesystem : true
3154 allowPrivilegeEscalation : false
55+ capabilities :
56+ drop :
57+ - ALL
3258 resources :
3359 limits :
3460 sgx.intel.com/epc : " 512Ki"
3561 sgx.intel.com/enclave : 1
3662 sgx.intel.com/provision : 1
63+ env :
64+ - name : QCNL_CONF_PATH
65+ value : " /run/dcap/qcnl_conf"
66+ - name : XDG_CACHE_HOME
67+ value : " /run/dcap/cache"
3768 volumeMounts :
38- - name : qgs-config
39- mountPath : /etc/qgs.conf
40- subPath : qgs.conf
41- - name : sgx-default-qcnl-conf
42- mountPath : /etc/sgx_default_qcnl.conf
43- subPath : sgx_default_qcnl.conf
69+ - name : dcap-qcnl-cache
70+ mountPath : /run/dcap/cache
71+ - name : qcnl-config
72+ mountPath : /run/dcap/
73+ readOnly : true
4474 volumes :
45- - name : qgs-config
46- configMap :
47- name : qgs-config
48- - name : sgx-default-qcnl-conf
49- configMap :
50- name : sgx-default-qcnl-conf
75+ - name : dcap-qcnl-cache
76+ emptyDir :
77+ sizeLimit : 50Mi
78+ - name : qcnl-config
79+ downwardAPI :
80+ items :
81+ - path : " qcnl_conf"
82+ fieldRef :
83+ fieldPath : metadata.annotations['qcnl-conf']
84+ - name : efivars
85+ hostPath :
86+ path : /sys/firmware/efi/efivars/
0 commit comments