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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
defaultNamespace | string | - | "" | 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
| Operation | Internal processing |
|---|---|
Build | Render the equivalent of kustomize build <path> and write the YAML result to stdout. |
Apply | Convert the rendering result to a set of unstructured objects, supplement defaultNamespace, and CreateOrUpdate them one by one. |
Destroy | Convert 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