Code Monkey home page Code Monkey logo

tw-quorum-helm's Introduction

Quorum CI

TW-QUORUM-INFRA

helm, k8s, quorum

本地测试方法

minikube运行

# --driver=docker 在mac上好用,--driver=hyperkit 可能会导致image拖不下来

minikube start  --cpus=6 --memory 8192 --cache-images=true  --driver=docker --disk-size='10g' --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers'

kubectl create namespace quorum-namespace
helm install quorum ./ --namespace=quorum-namespace
helm uninstall quorum 

加快第一次启动速度

可以提前把image下载了

minikube ssh
docker pull quorumengineering/tessera:0.11
docker pull quorumengineering/quorum:2.5.0

调试方法

pod 启动不了用这些命令

kubectl describe deployment/<deployname>
kubectl describe replicaset/<rsname>
kubectl get pods
kubectl describe pod/<podname>
kubectl logs <podname> --previous

# 命名空间使用`kubectl apply -f`后被污染,删除objects
kubectl delete --all deployments,configmaps,pods,pvc,service --namespace=default 
kubectl delete --all deployments,configmaps,pods,pvc,service --namespace=quorum-namespace  

访问节点

# 导出端口
kubectl get deployments -o wide
nohup kubectl port-forward deployment/quorum-node1-deployment 8546:8546 &

# 查询eth
npm install tw-eth-cli -g
echo "module.exports = { url: 'http://127.0.0.1:8546/'}" > ~/tw-eth-cli-config1.js 
tw-eth-cli balanceOf 0xed9d02e382b34818e88b88a309c7fe71e65f419d

配置文件解释

文件 作用 如何生成

|

tw-quorum-helm's People

Contributors

weiliy avatar benhaben avatar edison-hsu avatar

Watchers

James Cloos avatar Shangqi Liu avatar Ying-Zhou avatar  avatar  avatar  avatar Yan Qian avatar Edward NoaLand avatar Kit Ko avatar Adam Wong avatar Arthas Zeng avatar Alan Cheung avatar  avatar

Forkers

henrywu3319

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.