https://github.com/its-alex/tanka-playground
Tanka playground, this repo aim to locally deploy a stack with tanka
https://github.com/its-alex/tanka-playground
configuration deployment jsonnet kubernetes tanka
Last synced: 8 months ago
JSON representation
Tanka playground, this repo aim to locally deploy a stack with tanka
- Host: GitHub
- URL: https://github.com/its-alex/tanka-playground
- Owner: Its-Alex
- License: mit
- Created: 2024-02-22T15:16:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T15:41:00.000Z (about 2 years ago)
- Last Synced: 2025-02-23T11:12:29.318Z (over 1 year ago)
- Topics: configuration, deployment, jsonnet, kubernetes, tanka
- Language: Jsonnet
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tanka playground
This repository aim to play with tanka locally to familiarize with it.
# Requirements
- [`mise`](https://mise.jdx.dev/)
- [`direnv`](https://direnv.net/)
To setup dependencies you must run:
```sh
$ 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`](https://kind.sigs.k8s.io/):
```sh
$ kind create cluster --config ./kind/config.yaml
$ kind get kubeconfig --name local > .kubeconfig/default
```
## Deploy with tanka
Move to [`tanka folder`](/tanka/) and install jsonnet dependencies:
```sh
$ cd tanka
$ jb install
```
Make sure that direnv is load with the kubeconfig:
```sh
$ direnv reload
```
Finally, apply [`default environment`](/tanka/environments/default) to
[`kind`](https://kind.sigs.k8s.io/) cluster:
```sh
$ 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
```sh
$ kind delete clusters local
```
# License
[MIT](./LICENSE)