0chain(Miners & Sharders)
Run helm charts individually
0chain
Here Miners & Sharders both will get launch simultaneously. These are used to run the chain.
All the pods will get in running state in the following order i.e.
cassandra, sharders, redis & lastly miners.There counts can be controlled by setting the values as mentioned in values.yaml.
Resources limits and configmap values can also be controlled by setting them in helm command.
It will generate its own ingress with the name
miner-ingress&sharder-ingresswith URLs examplesbeta.0chain.net/miner01/_diagnostics&beta.0chain.net/sharder01/_diagnostics.Example for its usage in single command, you must use the namespace according to your network name. Also other values can also be set according to requirements:-
helm upgrade --install --wait -n beta 0chain \ --set zminer=false \ --set sharder.hostName=beta \ --set sharder.host=0chain.net \ --set sharder.sharderCount=2 \ --set sharder.image.tag=staging \ --set sharder.resources.requests.cpu=500m \ --set sharder.resources.requests.memory=750Mi \ --set sharder.resources.limits.cpu=500m \ --set sharder.resources.limits.memory=750Mi \ --set miner.hostName=beta \ --set miner.host=0chain.net \ --set miner.minerCount=3 \ --set miner.image.tag=staging \ --set miner.resources.requests.cpu=500m \ --set miner.resources.requests.memory=750Mi \ --set miner.resources.limits.cpu=500m \ --set miner.resources.limits.memory=750Mi \ 0chain-helm/zchainNote: By default
persistence.enabled: false. It means it will use openebs to create pvc's. In case if it istrue, it will create pv as well as pvc's.Note: By default
zminer: false. It means it will be use to deploy the network miner/sharders. In case if it istrue, it will used to deploy as external miners.Note: While specifying the
hostName&hostin helm command it will create theingresswith the same URLs as created in DNS. Example: Inbeta.0chain.nethostName will bebeta& host will be0chain.net. Necessary Urls will automatically get replaced in various configs/deployment files, if it is specified correctly.
Last updated