Kubectl kustomize: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=


Reads instructions from a kustomization.yaml file and generates syntactically valid and complete API resource [[Kubernetes Manifests#Overview|manifests]].
Reads instructions from a kustomization.yaml file and generates syntactically valid and complete API resource [[Kubernetes Manifests#Overview|manifests]] at stdout. The generated content may contain multiple resource representations, separated by ---.


  kubectl kustomize <''dirname''>
  kubectl kustomize <''dirname''>

Revision as of 16:43, 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.

kustomization.yaml Example

namePrefix:
images:
- name: something
  newTag: ...
namespace: ...   
resources:
- manifest-1.yaml
- manifest-2.yaml
patchesStrategicMerge:
- file1.yaml