mirror of
https://github.com/eznix86/k3m.git
synced 2026-07-25 20:38:53 +00:00
Run k3s over Canonical's multipass
- Python 100%
| .github/workflows | ||
| src/k3m | ||
| .gitignore | ||
| LICENSE | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
k3m - Lightweight k3s Cluster Manager
A simple CLI tool to manage k3s clusters using canonical's multipass.
Installation
Ubuntu/Debian
sudo apt install pipx
pipx install k3m
MacOS
brew install pipx
pipx install k3m
Development Installation
# Clone the repository
git clone https://github.com/eznix86/k3m.git
cd k3m
# Install using poetry
poetry install
Usage
# Create a cluster
k3m cluster create my-cluster --servers 1 --agents 2
# List clusters
k3m cluster list
# Delete a cluster
k3m cluster delete my-cluster
# Start/Stop a cluster
k3m cluster start my-cluster
k3m cluster stop my-cluster
# Get kubeconfig
k3m kubeconfig write my-cluster
# or
export KUBECONFIG=$(k3m kubeconfig write my-cluster)