Tanka is distributed as a single binary called
tk. It already includes the Jsonnet compiler, but requires some tools to be available:
kubectl: Tanka uses
kubectlto communicate to your cluster. This means
kubectlmust 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 UNIX
jb: #Jsonnet Bundler, the Jsonnet package manager
On macOS, Tanka is best installed using
$ 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
The Jsonnet Bundler project creates a package manager for Jsonnet
to share and reuse code across the internet, similar to
Tanka uses this tool by default, so it's recommended to install it as well:
jb binary is primarily distributed using GitHub releases.
For Linux and macOS, download the binary for your architecture and put it somewhere on your
# Linux amd64: sudo curl -Lo /usr/local/bin/jb https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-linux-amd64 # Linux arm / arm64 (e.g. RaspberryPi): sudo curl -Lo /usr/local/bin/jb https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-linux-arm sudo curl -Lo /usr/local/bin/jb https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-linux-arm64 # macOS: sudo curl -Lo /usr/local/bin/jb https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-darwin-amd64