TankaFlexible, reusable and concise configuration for Kubernetes
Edit page
IntroductionInstallationPrecompiled binaries (recommended)From sourceJsonnet-bundler
Writing Jsonnet
Output filteringExporting as YAMLCommand-line completionDiff strategiesDirectory structureEnvironment variablesFrequently asked questionsKnown issues

Installing Tanka

To install Tanka, it is usually sufficient to install the tk binary. It contains the Jsonnet compiler and everything else required, apart from some prerequesites:

  • kubectl: Tanka uses kubectl to communicate to your cluster. This means kubectl 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 UNIX diff(1) is required.
  • (recommended) jb: #Jsonnet-bundler, the Jsonnet package manager

We provide pre-compiled binaries for Tanka at https://github.com/grafana/tanka/releases.

Just grab the latest version from there, download it and put somewhere in your $PATH (e.g. to /usr/local/bin/tk)

From source

In case the above won't work for you, you can try building the most recent release using go get:

$ GO111MODULE=on go get github.com/grafana/tanka/cmd/tk

If that won't work either, compile by hand:

$ git clone https://github.com/grafana/tanka
$ cd tanka
$ make install

Note: You need a working go toolchain for this.


Apart from the tk binary, you will most probably also want to install Jsonnet-bundler, the Jsonnet package manager:

$ go get -u github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb