This repository contains the configuration files needed to create a Kind (Kubernetes in Docker) cluster with Flox runtime support. This cluster can be used to quickly try out the Flox shim locally.
The provided Flox environment provides all the tools needed for the demo (colima, kind, just, k9s, kubectl). To start the demo environment, run:
flox activate
just upThis will:
- Start a Colima VM
- Create a Kind cluster named
flox-shimwith the provided configuration - Apply the Flox RuntimeClass configuration
- Deploy the sample application
- Forward port 3000 to the deployed application
- Display helpful next steps
The cluster will have:
- 1 control-plane node using
ghcr.io/flox/flox-kind:latest - 1 worker node using
ghcr.io/flox/flox-kind:latest
The deployment creates:
- A
redispod running fromflox/rediswith a correspondingService - A pod running
quotes-appthat writes some initial quotes to theredisat startup, then uses it to serve quotes
Once just up completes, fetch something from the running application by
running:
curl localhost:3000/quotes/0Launch k9s for an interactive cluster dashboard:
k9sWith k9s you can:
- Navigate pods, deployments, and services with arrow keys
- View logs by pressing
lon a selected pod - Describe resources by pressing
d - Delete resources by pressing
ctrl+d
Check that your deployment is running:
kubectl get pods
kubectl logs deployment/quotesTo remove the Kind cluster:
just down