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.
| Requirement | Value | Note |
|---|---|---|
| Machine | Mac or Linux | amd64 or arm64 |
| Docker | running | On macOS, use Docker Desktop. |
| kubectl | 1.36 to 1.38 | Kite serves Kubernetes 1.37. |
| Cloudflare account | not needed | The control plane runs in a container too. |
Install the CLI
Run the installer
$ curl -fsSL https://get.runkite.io | shThe installer puts kite in ~/.local/bin. If it tells you to, add that
directory to your PATH.
Start a cluster
Start the cluster
$ kite local upcontrol 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.
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
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
Forward a local port to the Service
$ kubectl port-forward service/web 8080:80Open http://localhost:8080 to see the nginx welcome
page. Press Ctrl+C to stop forwarding.
Clean up
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 see | What to do |
|---|---|
Cannot connect to the Docker daemon | Start Docker, check docker info, and run kite local up again. |
| Port 6443 is in use | Run kite local up --port 7443, or another free port. |
| The control plane doesn’t respond | Run kite local logs and read the first error. |
The node isn’t Ready | Run kite local logs node-1 to read the node agent’s log. |
A pod stays Pending or ContainerCreating | Run kubectl describe pod <name> and read the events at the bottom. |
| Port 8080 is in use | Forward another port, for example 8081:80, and open that one. |
Next
- Deploy to Cloudflare: run the control plane in your Cloudflare account and join a real host.
- Deploy to your own servers: run the control plane on a Linux server of your own and join a real host.
- Compatibility and limitations: check what your workload needs before you move it.