Jeff Regan 24daa9e3dc Merge pull request #29 from monopole/updateReadme
Update README with file layout
2018-05-23 10:06:04 -07:00
2018-05-15 13:42:14 -07:00
2018-05-21 14:58:13 -07:00
2018-05-21 11:14:21 -07:00
2018-05-23 10:05:11 -07:00
2018-05-18 11:32:03 -07:00
2018-05-11 14:07:15 -07:00
2018-04-11 11:21:31 -07:00
2018-05-11 10:09:33 -07:00
2018-05-11 14:48:16 -07:00
2018-05-11 11:10:35 -07:00
2018-05-08 10:44:56 -07:00
2018-05-11 14:07:15 -07:00
2018-05-11 14:07:15 -07:00
2018-05-11 14:07:15 -07:00
2018-05-11 13:15:52 -07:00
2018-05-11 11:33:39 -07:00
2018-05-11 11:33:39 -07:00
2018-05-23 10:05:11 -07:00

kustomize

kustomize is a command line tool supporting template-free customization of YAML (or JSON) objects that conform to the kubernetes style. If your objects have a kind and a metadata field, kustomize can patch them to support configuration sharing and re-use.

For more details, try a demo.

Build Status Go Report Card

Installation

This assumes Go (v1.10.1 or higher) is installed and your PATH contains $GOPATH/bin:

go get github.com/kubernetes-sigs/kustomize

Usage

1) Make a customized 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

File structure:

~/yourApp
└── base
    ├── deployment.yaml
    ├── kustomization.yaml
    └── service.yaml

Your base could be a fork of someone else's configuration, that your occasionally rebase from to capture improvements.

2) Further customize with overlays

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

overlay image

File structure:

~/yourApp
├── base
│   ├── deployment.yaml
│   ├── kustomization.yaml
│   └── service.yaml
└── overlays
    ├── development
    │   ├── cpu_count.yaml
    │   ├── kustomization.yaml
    │   └── replica_count.yaml
    └── production
        ├── cpu_count.yaml
        ├── kustomization.yaml
        └── replica_count.yaml

Your overlays could sit in your own repository.

3) Run kustomize

Run kustomize on an overlay, e.g.

kustomize build ~/yourApp/overlays/production

The result is printed to stdout as a set of complete resources, ready to be applied to a cluster. See the demos.

About

This project is sponsored by sig-cli (KEP).

Description
No description provided
Readme Apache-2.0 124 MiB
2026-02-09 16:15:02 +00:00
Languages
Go 58.1%
PureBasic 40.7%
Shell 0.6%
Makefile 0.4%
HTML 0.1%