Skip to content

Commit

Permalink
docs(autok3s): format README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
  • Loading branch information
rancher-sy-bot committed Sep 25, 2020
1 parent 88ee89b commit 70418e7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ sudo autok3s create \

HA(embedded etcd) mode need `--master` at least 3 nodes, e.g.
```bash
--master 2"
sudo autok3s ... \
--master 2
```

HA(external database) mode need `--master` greater than 1 node, also need to specify `--datastore` and `--k3s-version`, e.g.
```bash
--master 2 --datastore "mysql://<user>:<password>@tcp(<ip>:<port>)/<db>" --k3s-version="v1.18.9-k3s1"
sudo autok3s ... \
--master 2 \
--datastore "mysql://<user>:<password>@tcp(<ip>:<port>)/<db>" \
--k3s-version="v1.18.9-k3s1"
```

### Join K3s Nodes
Expand Down Expand Up @@ -87,12 +91,16 @@ sudo autok3s join \

Join master nodes to (embedded etcd) HA cluster e.g.
```bash
--master 2
sudo autok3s ... \
--master 2
```

Join master nodes to (external database) HA cluster, also need to specify `--datastore` and `--k3s-version`, e.g.
```bash
--master 2 --datastore "mysql://<user>:<password>@tcp(<ip>:<port>)/<db>" --k3s-version="v1.18.9-k3s1"
sudo autok3s ... \
--master 2 \
--datastore "mysql://<user>:<password>@tcp(<ip>:<port>)/<db>"
--k3s-version="v1.18.9-k3s1"
```

### Delete K3s Cluster
Expand Down

0 comments on commit 70418e7

Please # to comment.