The k3d
example uses k3d
and tanka
to produce a Kubernetes environment
that
- A Unix-y command line (macOS or Linux will do).
- Kubectl
- Docker
- Tanka >= v0.9.2
- k3d >= v1.5.1 < v3.0.0
Build latest agent images with make agent-image agentctl-image
in the project root directory if there are local changes to test.
Run the following to create your cluster:
# Create a new k3d cluster
./scripts/create.bash
# Merge the k3d cluster config with your local kubectl config
./scripts/merge_k3d.bash
# Import images into k3d if they are not available on docker hub
k3d import-images -n agent-k3d grafana/agent
k3d import-images -n agent-k3d grafana/agentctl
tk apply ./environment
# Navigate to localhost:30080 in your browser to view dashboards
# Delete the k3d cluster when you're done with it
k3d delete -n agent-k3d