24a064139633792572a06184e1a26b886e94d3f9
kubesphere.md
| ... | ... | @@ -13,10 +13,8 @@ |
| 13 | 13 | |
| 14 | 14 | ``` |
| 15 | 15 | |
| 16 | - |
|
| 17 | - |
|
| 18 | 16 | - 创建集群 |
| 19 | - 配置文件参考:https://github.com/kubesphere/kubekey/blob/master/docs/config-example.md |
|
| 17 | + 配置文件参考:https://github.com/kubesphere/kubekey/blob/master/docs/config-example.md |
|
| 20 | 18 | ```yaml |
| 21 | 19 | |
| 22 | 20 | apiVersion: kubekey.kubesphere.io/v1alpha2 |
| ... | ... | @@ -63,23 +61,30 @@ |
| 63 | 61 | insecureRegistries: [] |
| 64 | 62 | addons: [] |
| 65 | 63 | ``` |
| 66 | - |
|
| 67 | - ``` |
|
| 64 | + |
|
| 65 | + ``` |
|
| 68 | 66 | ./kk create config --with-kubernetes <Kubernetes version> |
| 69 | 67 | ./kk create cluster -f node-k8s.yaml |
| 70 | 68 | 开始下载依赖的二进制、镜像和组件,都保存在当前目录的kubekey下面. |
| 71 | 69 | 时间较长,完成以后,执行 kubectl get pod -A 查看是否安装成功。 |
| 72 | - ``` |
|
| 73 | - |
|
| 70 | + ``` |
|
| 74 | 71 | |
| 75 | 72 | - 新增节点 |
| 73 | + |
|
| 76 | 74 | 编辑配置文件,将新的节点写入到配置文件中,并确定是worker还是master等。 |
| 77 | 75 | 然后执行新增命令 |
| 78 | - |
|
| 79 | - ``` |
|
| 80 | - |
|
| 81 | - ./kk add nodes -f multi-node-k8s.yaml |
|
| 76 | + |
|
| 77 | + ``` |
|
| 78 | + ./kk add nodes -f multi-node-k8s.yaml |
|
| 82 | 79 | |
| 83 | - ``` |
|
| 84 | - |
|
| 80 | + ``` |
|
| 81 | +- 删除节点 |
|
| 82 | + ``` |
|
| 83 | + ./kk delete node node2 -f multi-node-k8s.yaml |
|
| 84 | + ``` |
|
| 85 | + |
|
| 86 | +- 安装kubesphere |
|
| 87 | + ``` |
|
| 88 | + |
|
| 89 | + ``` |
|
| 85 | 90 | |
| ... | ... | \ No newline at end of file |