Skip to content

Tanka playground, this repo aim to locally deploy a stack with tanka

License

Notifications You must be signed in to change notification settings

Its-Alex/tanka-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tanka playground

This repository aim to play with tanka locally to familiarize with it.

Requirements

To setup dependencies you must run:

$ mise install
$ direnv allow

Getting started

Those steps will help you setup a cluster with tanka configured in this folder.

Create cluster

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

Deploy with tanka

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:
...

Delete environment

$ kind delete clusters local

License

MIT

About

Tanka playground, this repo aim to locally deploy a stack with tanka

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published