Overview
Learning how to use Tanka
Welcome to the Tanka tutorial!
The following sections will explain how to deploy an example stack,
(Grafana and
Prometheus), to Kubernetes. We will also deal with parameters, differences between dev
and prod
and how to stop worrying and love libraries.
To do so, we have the following steps:
- Deploying without Tanka first: Using good old
kubectl
to understand what Tanka will do for us. - Using Jsonnet: Doing the same thing once again, but this time with Tanka and Jsonnet.
- Parameterizing: Using Variables to avoid data duplication.
- Abstraction: Splitting components into individual parts.
- Environments: Dealing with differences between
dev
andprod
. k.libsonnet
: Avoid having to remember API resources.
Completing this gives a solid knowledge of Tanka’s fundamentals. Let’s get started!
Resources
- The final outcome of this tutorial can be seen here: https://github.com/grafana/tanka/examples/prom-grafana