认识
CITA Cloud 是一个基于区块链技术的云端服务平台,旨在为企业和开发者提供高效、安全和可扩展的区块链解决方案;
组成
CITA Cloud 不是基于 CITA 区块链技术构建,CITA 是一个开源的企业级区块链解决方案,具有高度可定制性和灵活性;
构建
快速部署
cita-cloud/charts at v6.2.0
https://cita-cloud-docs.readthedocs.io/zh_CN/latest/getting-start.html
git clone https://github.com/cita-cloud/charts.git git checkout v6.2.0 # kubectl create namespace cita-cloud # kubectl config set-context --current --namespace cita-cloud helm --namespace cita-cloud install \ test-chain-pvc ./cita-cloud-pvc/ --set scName=nas-client-provisioner helm --namespace cita-cloud install \ test-chain ./cita-cloud-local-cluster \ --set pvcName=test-chain-pvc \ --set replicaCount=4 \ --set service.nodePort=31004 \ --set service.vmPort=31005
通过 Helm 部署
helm repo add cita-cloud https://cita-cloud.github.io/charts helm repo update helm search repo cita-cloud/ ... // ---------------------------------------------------------------------------- // helm pull cita-cloud/cita-cloud-pvc # cita-cloud-pvc-6.6.1.tgz helm show values ./cita-cloud-pvc-6.6.1.tgz > cita-cloud-pvc-6.6.1.helm-vlaues.yaml vim cita-cloud-pvc-6.6.1.helm-vlaues.yaml helm install local-pvc \ ./cita-cloud-pvc-6.6.1.tgz -f cita-cloud-pvc-6.6.1.helm-vlaues.yaml \ --namespace cita-cloud --create-namespace kubectl get pvc // ---------------------------------------------------------------------------- // helm pull cita-cloud/cita-cloud-local-cluster # cita-cloud-local-cluster-6.6.1.tgz helm show values ./cita-cloud-local-cluster-6.6.1.tgz > ./cita-cloud-local-cluster-6.6.1.helm-values.yaml helm install test-chain \ ./cita-cloud-local-cluster-6.6.1.tgz -f ./cita-cloud-local-cluster-6.6.1.helm-values.yaml \ --namespace cita-cloud --create-namespace kubectl get pods
通过 Cloud Config 创建
docker pull docker.io/cita-cloud/cloud-config docker run -it --rm -v $(pwd):/data -w /data docker.io/cita-cloud/cloud-config \ cloud-config create-k8s --admin 0x9bab5858df4a9e84ff3958884a01a4fce5e07edb \ --nodelist localhost:40000:node0:k8s,localhost:40001:node1:k8s,localhost:40002:node2:k8s,localhost:40003:node3:k8s docker run -it --rm -v $(pwd):/data -w /data docker.io/cita-cloud/cloud-config \ cloud-config update-yaml --storage-class ceph-block --docker-registry docker.io --docker-repo cita-cloud --domain node0 docker run -it --rm -v $(pwd):/data -w /data docker.io/cita-cloud/cloud-config \ cloud-config update-yaml --storage-class ceph-block --docker-registry docker.io --docker-repo cita-cloud --domain node1 docker run -it --rm -v $(pwd):/data -w /data docker.io/cita-cloud/cloud-config \ cloud-config update-yaml --storage-class ceph-block --docker-registry docker.io --docker-repo cita-cloud --domain node2 docker run -it --rm -v $(pwd):/data -w /data docker.io/cita-cloud/cloud-config \ cloud-config update-yaml --storage-class ceph-block --docker-registry docker.io --docker-repo cita-cloud --domain node3 kubectl apply -f test-chain-node0/yamls kubectl apply -f test-chain-node1/yamls kubectl apply -f test-chain-node2/yamls kubectl apply -f test-chain-node3/yamls
常见问题处理
6.5 版本,容器以 ROOT 用户运行;
6.6 版本,容器以非 ROOT 用户运行;
性质
CITA Cloud 提供了一系列功能和工具,使用户可以轻松构建、部署和管理区块链应用。它支持多种编程语言和智能合约开发框架,使开发者能够根据自己的需求和技术偏好进行开发;
同时,CITA Cloud 提供了高性能的共识算法和存储机制,以及安全可靠的身份验证和权限管理功能,确保区块链网络的稳定性和安全性;
CITA Cloud 还提供了丰富的开发者工具和 API,以简化区块链应用的开发和集成过程。它支持跨链互操作性,可以与其他区块链网络进行连接和交互,实现更广泛的业务应用;
应用
总而言之,CITA Cloud 是一个强大的区块链云服务平台,为用户提供了构建和管理区块链应用的一站式解决方案;
它具有高性能、可扩展性和安全性,适用于各种企业和开发者的区块链需求;