Tutorial
Writing Jsonnet
Libraries
Advanced features
References
Installing Tanka
Tanka is distributed as a single binary called tk
. It already includes the Jsonnet compiler, but requires some tools to be available:
kubectl
: Tanka useskubectl
to communicate to your cluster. This meanskubectl
must be available somewhere on your$PATH
. If you ever have worked with Kubernetes before, this should be the case anyways.diff
: To compute differences, standard UNIXdiff(1)
is required.- (recommended)
jb
: #Jsonnet Bundler, the Jsonnet package manager - (recommended)
helm
: Helm, required for Helm support
On macOS, Tanka is best installed using brew
:
$ brew install tanka
This downloads the most recent version of Tanka and installs it.
Also, Tanka is automatically kept up to date as part of brew upgrade
.
Jsonnet Bundler
The Jsonnet Bundler project creates a package manager for Jsonnet
to share and reuse code across the internet, similar to npm
or go mod
.
Tanka uses this tool by default, so it's recommended to install it as well:
On macOS, Jsonnet Bundler is best installed using brew
:
$ brew install jsonnet-bundler
This downloads the most recent version of Jsonnet Bundler and installs it.
Also, Jsonnet Bundler is automatically kept up to date as part of brew upgrade
.