#kubernetes #manifests #templatisation

app k8s-tpl

Templatisation for Kubernetes manifests

5 releases (breaking)

0.5.0 May 17, 2020
0.4.0 May 17, 2020
0.3.0 May 16, 2020
0.2.0 May 16, 2020
0.1.0 May 16, 2020

#361 in Template engine

MIT license

7KB
115 lines

k8s-tpl

Templatisation for Kubernetes manifests

Overview

k8s-tpl is a CLI tool for interpolating Kubernetes manifests using the Go templating language. The supported input and output format is intended to facilitate usage in a pipeline with kubectl apply -f -.

Installation

The k8s-tpl CLI is available on crates.io and can be installed using Cargo:

cargo install k8s-tpl

Usage

The CLI is largely self documenting:

k8s-tpl --help

Basic usage

k8s-tpl --config dev.yaml kubernetes.yaml \
  | kubectl apply -f -

Environment variables

k8s-tpl injects environment variables into an Env key in the template context.

Dependencies

~3MB
~56K SLoC