Opinionated command line tool to interact with minikube. An easy way to deploy a given set of helm charts.
"kleinwuerfel" means more or less "minikube" in German.
As kleinwuerfel
interacts with other command line tools, you have install:
minikube
helm
kubectl
- cargo
cargo install kleinwuerfel
- Precompiled binary
[minikube]
# Amount of CPUs
cpus = 4
# Memory in MB
memory = 8192
# Optional -> added via --set to each "helm upgrade"
[default_values]
"imageRegistry.username" = "${env.HARBOR_USERNAME}"
"imageRegistry.password" = "${env.HARBOR_SECRET}"
[[helm_chart_repo]]
# Name to be referenced in [[helmchart]] blocks
name = "helm-chart-repo-1"
# URL for "helm repo add ..." and "helm login" when "username" and "password" are both set
url = "some.registry.url/chartrepo"
# Optional
username = "${env.HARBOR_USERNAME}"
# Optional
password = "${env.HARBOR_SECRET}"
[[helmchart]]
# Reference to name of [[helm_chart_repo]] block
helm_chart_repo = "helm-chart-repo-1"
# Is combined for "helm upgrade ... helm-chart-1 helm-chart-repo-1/helm-chart-1"
name = "helm-chart-1"
# Port fowarding
ports = [8080, 9999]
# Optional -> added via --set to "helm upgrade". Overrides "default_values"
[values]
"some.additional.value" = "true"
[[helmchart]]
# Reference to name of [[helm_chart_repo]] block
helm_chart_repo = "helm-chart-repo-1"
# Is combined for "helm upgrade ... helm-chart-1 helm-chart-repo-1/helm-chart-2"
name = "helm-chart-2"
- If
minikube status
exits with0
, we assume that it is already running and skip theminikube start
part
kleinwuerfel up [--no-deploy]
- Calls
minikube delete
right now
kleinwuerfel down
- Better error handling
- More testing