kubectl/cmd/kustomize
Jeffrey Regan 5ce77bd25f updated figs 2018-04-16 14:01:31 -07:00
..
build kustomize: automate github release publishing 2018-04-11 15:16:57 -07:00
demos Some kustomization field renaming. 2018-04-13 13:34:44 -07:00
docs updated figs 2018-04-16 14:01:31 -07:00
test change kinflate to kustomize 2018-04-11 11:21:31 -07:00
version change kinflate to kustomize 2018-04-11 11:21:31 -07:00
README.md manifest becomes kustomization 2018-04-12 17:17:01 -07:00
kustomize.go change kinflate to kustomize 2018-04-11 11:21:31 -07:00

README.md

kustomize

kustomize is a command line tool supporting template-free customization of declarative configuration targetted to kubernetes.

Installation

Assumes Go is installed and your PATH contains $GOPATH/bin:

go get k8s.io/kubectl/cmd/kustomize

Usage

1) Make a base

A base configuration is a kustomization file listing a set of k8s resources - deployments, services, configmaps, secrets that serve some common purpose.

base image

2) Customize it with overlays

An overlay customizes your base along different dimensions for different purposes or different teams, e.g. for development, staging and production.

overlay image

3) Run kustomize

Run kustomize on your overlay. The result is printed to stdout as a set of complete resources, ready to be applied to a cluster.

For more details, try a demo.