KiteGitHub
Quickstart

Quickstart

A cluster on your laptop, nginx on it, and its page in your browser. No Cloudflare account.

Before you begin

The control plane and one node each run in a Docker container on your machine.

RequirementValueNote
MachineMac or Linuxamd64 or arm64
DockerrunningOn macOS, use Docker Desktop.
kubectl1.36 to 1.38Kite serves Kubernetes 1.37.
Cloudflare accountnot neededThe control plane runs in a container too.

Install the CLI

1

Run the installer

$ curl -fsSL https://get.runkite.io | sh

The installer puts kite in ~/.local/bin. If it tells you to, add that directory to your PATH.

Start a cluster

2

Start the cluster

$ kite local up
  control  https://127.0.0.1:6443  (0.2175.0)
  node     node-1
  kubectl  export KUBECONFIG=/Users/you/.kite/local/kubeconfig

The first run downloads the release and its two images, which takes a minute or two. Later runs start in seconds. kite local up prints these lines when the node is ready.

3

Point kubectl at it

$ export KUBECONFIG=~/.kite/local/kubeconfig
$ kubectl get nodes
NAME     STATUS   ROLES    AGE   VERSION
node-1   Ready    <none>   11s   v1.37.0+kite

Use the export line that kite local up printed. The node agent reports the node Ready.

Deploy nginx

4

Create a Deployment and a Service

$ kubectl create deployment web --image=nginx:1.27-alpine --replicas=2
$ kubectl expose deployment web --port=80
$ kubectl rollout status deployment/web
$ kubectl get pods -o wide
NAME              READY   STATUS    RESTARTS   AGE   IP          NODE
web-0e9okk4-1g0   1/1     Running   0          7s    10.64.0.2   node-1
web-0e9okk4-1g1   1/1     Running   0          7s    10.64.0.3   node-1

The first rollout waits while the node downloads the image. Each pod gets an address from the node’s range.

What changed+ deployment/web, 2 pods
+ service/web, port 80

Open nginx

5

Forward a local port to the Service

$ kubectl port-forward service/web 8080:80

Open http://localhost:8080 to see the nginx welcome page. Press Ctrl+C to stop forwarding.

Clean up

6

Delete what you deployed, then stop the cluster

$ kubectl delete service/web deployment/web
$ kite local down

kite local down stops the control plane and the node, and keeps the objects you created, so the next kite local up starts with them.

What changed− service/web, deployment/web


The control plane and the node stop. Your other objects stay.

To remove the containers, their volumes and ~/.kite/local, run kite local delete.

If something goes wrong

What you seeWhat to do
Cannot connect to the Docker daemonStart Docker, check docker info, and run kite local up again.
Port 6443 is in useRun kite local up --port 7443, or another free port.
The control plane doesn’t respondRun kite local logs and read the first error.
The node isn’t ReadyRun kite local logs node-1 to read the node agent’s log.
A pod stays Pending or ContainerCreatingRun kubectl describe pod <name> and read the events at the bottom.
Port 8080 is in useForward another port, for example 8081:80, and open that one.

Next