An operator for managing BuildKit instances on Kubernetes.
You will need kind
and frpc
, which can be installed on macOS with brew
:
brew install kind frpc
(Re)start your local kind cluster and run the operator:
make recreate
make run
If you'd rather run the operator from your IDE with a debugger attached, run these commands instead:
make recreate
make start_webhook_reverse_proxy # Keep this running in the background until you're done debugging
Then have your IDE run ./cmd/operator
in debug mode with the following program arguments set: --kubeconfig ./kind/kubeconfig --kubecontext kind-buildkit
You can interact with the cluster either of these ways:
kubectl --kubeconfig ./kind/kubeconfig [command]
k9s --kubeconfig ./kind/kubeconfig --write
Congratulations! You are now running the Buildkit Operator locally.