Kubectl kustomize: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 10: | Line 10: | ||
The directory specified as argument must contain <tt>kustomization.yaml</tt>. | The directory specified as argument must contain <tt>kustomization.yaml</tt>. | ||
<font color=darkgray>It seems to add prefixes to names, update image tags, adds namespace metadata, "yaml-cleans" according to rules that have yet to be elucidated.</font> | |||
=kustomization.yaml Example= | =kustomization.yaml Example= |
Revision as of 17:00, 23 August 2019
Internal
Overview
Reads instructions from a kustomization.yaml file and generates syntactically valid and complete API resource manifests at stdout. The generated content may contain multiple resource representations, separated by ---.
kubectl kustomize <dirname>
The directory specified as argument must contain kustomization.yaml.
It seems to add prefixes to names, update image tags, adds namespace metadata, "yaml-cleans" according to rules that have yet to be elucidated.
kustomization.yaml Example
namePrefix:
images:
- name: something
newTag: ...
namespace: ...
resources:
- manifest-1.yaml
- manifest-2.yaml
patchesStrategicMerge:
- file1.yaml