Helm plugin for using Tiller locally and in your CI/CD pipelines.
Note: For a better security Tiller plugin comes with preset storage as Secret
.
^ NOTE: Removed in this fork, since it's unnecessary when not using K8S secrets
Install the latest version:
$ helm plugin install https://github.com/rimusz/helm-tiller
Usage:
$ helm tiller start [tiller_namespace]
$ helm tiller stop
$ helm tiller run [tiller_namespace] -- [command] [args]
Available commands:
start Start Tiller
run Start Tiller and run arbitrary command within the environment
stop Stop Tiller
Start Tiller:
$ helm tiller start
The default working Tiller namespace
is kube-system
, you can set another one:
$ helm tiller start my_tiller_namespace
Tip: You can have many Tiller namespaces, e.g. one per team, just pass the name as an argument when you starting Tiller.
Examples use of tiller run
, that starts/stops tiller
before/after the specified command:
$ helm tiller run helm list
$ helm tiller run my-tiller-namespace -- helm list
$ helm tiller run my-tiller-namespace -- bash -c 'echo running helm; helm list'
Stop Tiller:
$ helm tiller stop
Handy bash
aliases for use locally:
alias hh="helm tiller run helm"
alias hr="helm tiller run"
alias ht="helm tiller start"
alias hts="helm tiller stop"
Examples of alias use:
# helm tiller run helm list
$ hh ls
# helm tiller run my-tiller-namespace -- helm list
$ hr my-tiller-namespace -- helm list
# helm tiller run my-tiller-namespace -- bash -c 'echo running helm; helm list'
$ hr my-tiller-namespace -- bash -c 'echo running helm; helm list'
To build MacOS
and to retrieve Linux
binaries and then publish them to GCS
bucket run on your Mac:
$ TILLER_VERSION=2.10.0 GCS_BUCKET=my_bucket make build
Note: Tiller
in pre v2.10
does not support kubeconfig files which use user authentication via auth-provider
, so you need to use this approach for all pre v2.10
tiller
releases.
To build patched MacOS
and Linux
tiller
binaries and then publish them to GCS
bucket run on your Mac:
$ TILLER_VERSION=2.9.1 GCS_BUCKET=my_bucket make build-patch