Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

type: kustomize

A kustomize Manifest applies the Kubernetes manifests rendered by kustomize into the cluster. Internally, Tazuna calls kustomize (sigs.k8s.io/kustomize) and uses the result equivalent to kustomize build <path>.

path

Points to the directory containing kustomization.yaml. Write the path relative to the directory of tazuna.yaml itself. If the directory does not have a valid kustomization.yaml, tazuna build / apply fails.

Specific Fields

Written inside the manifests[].kustomize object.

FieldTypeRequiredDefaultDescription
defaultNamespacestring-""The namespace assigned to rendered resources whose metadata.namespace is unset. When empty, the namespace written on the resource (or the Kubernetes default default if absent) is used.

Behavior

OperationInternal processing
BuildRender the equivalent of kustomize build <path> and write the YAML result to stdout.
ApplyConvert the rendering result to a set of unstructured objects, supplement defaultNamespace, and CreateOrUpdate them one by one.
DestroyConvert the rendering result to a set of unstructured objects, supplement defaultNamespace, and delete them one by one.

kustomize build itself does not require a connection to the cluster. It is self-contained with local files only.

Examples

manifests:
  - name: ingress-nginx
    type: kustomize
    path: ./kustomize/ingress-nginx
    tags:
      - infra

  - name: app-overlay
    type: kustomize
    path: ./kustomize/app/overlays/staging
    kustomize:
      defaultNamespace: staging