From 70418e7fc3ca3c5c0294cc49ada9d2de6885a192 Mon Sep 17 00:00:00 2001 From: Jason-ZW Date: Wed, 23 Sep 2020 14:33:50 +0800 Subject: [PATCH] docs(autok3s): format README.md Signed-off-by: Jason-ZW --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 55a42a55..7f58882d 100644 --- a/README.md +++ b/README.md @@ -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://:@tcp(:)/" --k3s-version="v1.18.9-k3s1" +sudo autok3s ... \ + --master 2 \ + --datastore "mysql://:@tcp(:)/" \ + --k3s-version="v1.18.9-k3s1" ``` ### Join K3s Nodes @@ -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://:@tcp(:)/" --k3s-version="v1.18.9-k3s1" +sudo autok3s ... \ + --master 2 \ + --datastore "mysql://:@tcp(:)/" + --k3s-version="v1.18.9-k3s1" ``` ### Delete K3s Cluster