Coder Social home page Coder Social logo

cloud-native-prague-11's Introduction

Tanka: for those who hate stirng templating but don't mind braces

This repository contains all resources for my talk at Cloud Native Prague meetup #11.

The recording from the talk is available on Cloud Native Prague YouTube channel.

Talk Abstract

Kubernetes API resource manifests are structured data. String templating is admittedly not the best way to generate those. There now exists a whole class of purpose built languages specifically designed to generate and validate structured data that lend themselves well to generating Kubernetes API resources. Depending on what your use-case is, this might be a killer application for you.

Jsonnet, used by Grafana Tanka, is one such language.

Slides

The slides used during the presentation are in slides.org. This is Emacs Org mode file which is similar to Markdown and can be read with any text processor if you don't have text editor with Org mode at hand.

Examples

The examples directory contains runnable samples of Jsonnet, Go and Tanka used during my presentation.

The Makefile included in this repository provides targets for running the examples e.g. make examples/01-jsonnet-basics/01.jsonnet.

Playground

This repository uses Nix Flakes direnv setup. If you want to run the examples without Nix you can find a list of needed packages in Flake.nix file.

Wile k3d is the chosen local dev cluster setup, the examples can be tested against any Kuernetes cluster. The only requirement to run the examples is Kubernets >= 1.27.

The k3d setup relies on container runtime which the Flake.nix does not install. By default this is Docker. See k3d docs for alternatives.

The Makefile included in this repository provides targets for bringing up a testing k3d cluster:

# To start the local k3d cluster
make k3d-up

# To cleanup the local k3d cluster
make k3d-clean

cloud-native-prague-11's People

Contributors

fkrestan avatar

Stargazers

Andrew Lewis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.