`kwok` out of Cluster

Running kwok out of cluster #

This document walks you through how to run kwok out of cluster for a Kubernetes cluster.

Prerequisites #

Firstly, you need to have a Kubernetes cluster, and the kwok command-line tool must be available in your PATH.

Install kwok #

Install kwok in your environment.

Running #

Next, you can run kwok out of cluster by using the --kubeconfig flag.

kwok \
  --kubeconfig=~/.kube/config \
  --manage-all-nodes=false \
  --manage-nodes-with-annotation-selector=kwok.x-k8s.io/node=fake \
  --manage-nodes-with-label-selector= \
  --manage-single-node= \
  --cidr= \
  --node-ip= \

Finally, you can see the kwok is running out of cluster for the Kubernetes cluster.

Next steps #

Now, you can use kwok to manage nodes and pods in the Kubernetes cluster.