Skip to content

Commit

Permalink
chore: update kubernetes deploy for axon
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Tl committed Jan 2, 2024
1 parent 9727728 commit 5d4e6ce
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions devtools/chain/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Kubernetes enables you to deploy Axon Chain rapidly while conserving resources.
- Secondly, it is necessary to plan the storageClass inside kubernetes
- The third is a machine that can have kubectl installed and can operate kubernetes


## Instructions

1. **Download the Project**
Expand All @@ -20,17 +19,20 @@ Kubernetes enables you to deploy Axon Chain rapidly while conserving resources.
```

2. **Navigate to the Corresponding Directory**

```bash
cd devtools/chain/k8s/multple
```

3. **Create the Corresponding Namespace**

```bash
kubectl create namespace axon-alphanet
```

4. **Check Axon Version**
- Modify ```newTag: forcerelay-dev-c203acb``` to the version you want to deploy

- Modify ```newTag: forcerelay-dev-c203acb``` to the version you want to deploy

```bash
images:
Expand All @@ -41,7 +43,9 @@ Kubernetes enables you to deploy Axon Chain rapidly while conserving resources.
```

5. **Check Axon's Required StorageClass and Modify**
- modifying StorageClass ```storageClassName: chain``` for your own cluster
```bash
volumeClaimTemplates:
- metadata:
Expand All @@ -66,16 +70,27 @@ Kubernetes enables you to deploy Axon Chain rapidly while conserving resources.
- --chain-spec=/app/devtools/chain/chain-spec.toml
```
7. [Generate key](https://github.com/axonweb3/axon/tree/main/core/cli#generate-keypair:~:text=Generate%20Keypair,in%20config%20file.), and update the fields of the chain-spec.yaml and toml files
- [chain-spec.yaml](https://github.com/axonweb3/axon/blob/axon-deploy-kubernetes/devtools/chain/k8s/multiple/chain-spec.toml#:~:text=interval%20%3D%203000-,%5B%5Bparams.verifier_list%5D%5D,vote_weight%20%3D%201,-axon/devtools/chain)
- [node_1.toml](https://github.com/axonweb3/axon/blob/axon-deploy-kubernetes/devtools/chain/k8s/multiple/node_1.toml#:~:text=%5B%5Bnetwork.,p2p/QmXoSkz4zkHHiFZqmDZQ4gFYtJ72uqtp4m6FX373X4VkRq%22)
- [node_2.toml](https://github.com/axonweb3/axon/blob/axon-deploy-kubernetes/devtools/chain/k8s/multiple/node_2.toml#:~:text=%5B%5Bnetwork.,p2p/QmXoSkz4zkHHiFZqmDZQ4gFYtJ72uqtp4m6FX373X4VkRq%22)
- [node_3.toml](https://github.com/axonweb3/axon/blob/axon-deploy-kubernetes/devtools/chain/k8s/multiple/node_3.toml#:~:text=%5B%5Bnetwork.,p2p/QmXoSkz4zkHHiFZqmDZQ4gFYtJ72uqtp4m6FX373X4VkRq%22)
- [node_4.toml](https://github.com/axonweb3/axon/blob/axon-deploy-kubernetes/devtools/chain/k8s/multiple/node_4.toml#:~:text=%5B%5Bnetwork.,p2p/QmXoSkz4zkHHiFZqmDZQ4gFYtJ72uqtp4m6FX373X4VkRq%22)
7. **Start Axon After the axon initialization is successful, modify the axon1 to axon4 statefulset file to the following format**
```bash
containers:
- name: axon1
args:
- ./axon
- init
- run
- --config=/app/devtools/chain/k8s/node_1.toml
- --chain-spec=/app/devtools/chain/chain-spec.toml
```
```
cd devtools/chain/k8s/
Expand Down

0 comments on commit 5d4e6ce

Please sign in to comment.