本仓库着眼于为hyperledger-labs/trusted-compute-framework项目添加基于kubernetes的开发环境搭建方式。
- kubectl-v1.15.2
- 配置kubernetes集群
- 启动LMDB服务器
kubectl create -f lmdb-pod.yaml # 创建管理 LMDB Pod的服务用于接收 CRUD 请求 kubectl create -f lmdb-service.yaml
- 启动
EnclaveManager
(用于管理SGX enclave)和TCSServer
(负责监听并处理客户端请求)# 下面的操作需要等待Pod和服务的状态都变成 Ready kubectl create -f enclave-manager-pod.yaml kubectl create -f tcs-server-pod.yaml kubectl create -f tcs-service.yaml
-
发送工单请求
kubectl create -f propose-requests-job.yaml
-
查看请求处理过程的日志
# 假设 propose-request-abcde 是上一步创建的 job kubectl logs propose-request-abcde # 即可得到部分输出如下 [23:20:36 INFO __main__] Signature Verified [23:20:36 INFO utility.utility] Decryption Result at Client - You have a risk of 71% to have heart disease.