This repository aim to play with tanka locally to familiarize with it.
To setup dependencies you must run:
$ mise install
$ direnv allow
Those steps will help you setup a cluster with tanka configured in this folder.
First you must create a kube cluster, we will use kind
:
$ kind create cluster --config ./kind/config.yaml
$ kind get kubeconfig --name local > .kubeconfig/default
Move to tanka folder
and install jsonnet dependencies:
$ cd tanka
$ jb install
Make sure that direnv is load with the kubeconfig:
$ direnv reload
Finally, apply default environment
to
kind
cluster:
$ tk apply tanka/environments/default/
diff -u -N /tmp/LIVE-1182370706/apps.v1.Deployment.default.grafana /tmp/MERGED-257336423/apps.v1.Deployment.default.grafana
--- /tmp/LIVE-1182370706/apps.v1.Deployment.default.grafana 2024-02-22 16:56:06.905113732 +0100
+++ /tmp/MERGED-257336423/apps.v1.Deployment.default.grafana 2024-02-22 16:56:06.905113732 +0100
@@ -0,0 +1,43 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
...
$ kind delete clusters local