Kustomize

Notes on Kustomize1.

Installation

kubectl is a Kustomize requirement. To install the binary version of Kustomize use

$ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash

ConfigMaps

ConfigMap Generators

Creating a ConfigMap from a kustomization.yaml:

configMapGenerator:
  - name: some-cmap
    files:
      - ./blah.yaml
    options:
      disableNameSuffixHash: true

This will create a ConfigMap named some-cmap from the file ./blah.yaml. It will also disable the hash suffix on the name of the ConfigMap.