Crates.io | kleinwuerfel |
lib.rs | kleinwuerfel |
version | 0.4.0 |
source | src |
created_at | 2022-10-13 21:49:20.546438 |
updated_at | 2022-10-25 20:10:50.111951 |
description | Tool to interact with minikube and deploy a set of helm charts. |
homepage | |
repository | https://github.com/icepuma/kleinwuerfel |
max_upload_size | |
id | 687502 |
size | 43,363 |
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 install kleinwuerfel
[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"
minikube status
exits with 0
, we assume that it is already running and skip the minikube start
partkleinwuerfel up [--no-deploy]
minikube delete
right nowkleinwuerfel down