`kwokctl` 管理集群

使用 kwokctl 创建集群 #

本文档将指导您如何运行 kwokctl 来管理模拟集群。

安装 kwokctl #

在您的环境中安装 kwokctl

创建集群 #

让我们从创建一个集群开始

$ kwokctl create cluster --name=kwok
kwokctl create cluster
Creating cluster "kwok-kwok"
Starting cluster "kwok-kwok"
Cluster "kwok-kwok" is ready
You can now use your cluster with:

    kubectl config use-context kwok-kwok

Thanks for using kwok!

然后我们切换上下文

kubectl config use-context kwok-kwok

后续用法与任何其他 Kubernetes 集群一样

获取集群 #

获取由 kwokctl 管理的集群

$ kwokctl get clusters
kwok

删除集群 #

$ kwokctl delete cluster --name=kwok
Stopping cluster "kwok-kwok"
Deleting cluster "kwok-kwok"
Cluster "kwok-kwok" deleted

后续步骤 #

现在,您可以使用 kwok管理 Kubernetes 集群中的节点和 Pod