preloader

ytt

Overview

ytt is a template and patching tool for Kubernetes. Making use of starlark, ytt combines the best of Helm go templates and Kustomize patching in one cohesive tool.

Theory

  • Know what ytt is and how it fits into the Carvel toolchain.
  • ytt vs X

Review documentation (15min)

  • Review the ytt documentation

Review documentation (45min)

  • An introduction to ytt on TGI Kubernetes.

TGI Kubernetes (1hr 30min)

  • YAML templating with ytt

Read article (15min)

Practical

  • Know how to use ytt for overlays.
  • Know how to use ytt for templating.

Pre-requisites

If you intend on completing the tutorial section there are some pre-requisites.

  • Linux environment with admin permissions

if using a Windows Laptop, the suggestion is to have either WSL installed or have available a Hyper-V Linux VM.

Tutorial

The best way to learn about how to use ytt is to mess around in the playground .

If you’re looking for some inspiration, try completing some of the following scenarios.

Follow along

If you want to follow along with some example, try the following.

  • Primer on ytt overlays

Blog Post (15min)

  • Parameterize project configuration

Blog Post (30min)

  • vendir and ytt, better together

Blog Post (30min)

Go you own way

Now try creating your own using these common examples.

  • Overlay a Namespace into a Helm Chart
  • Overlay Firewall rules into a Helm Chart
  • Template a MinIO Operator instance using data values.