1

TIL - Kubectl integrated Kustomize

 2 years ago
source link: https://sbulav.github.io/til/kubernetes/til-kubectl-integrated-kustomize/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Sergei Bulavintsev

DevOps, RHCA lvl II, CKA, CKS, CKAD

TIL - Kubectl integrated Kustomize

less than 1 minute read

Today I learned that since 1.14, ‘kubectl’ has Kustomize integrated in it:

> kubectl apply --help | grep kustomize -A2
-k, --kustomize='':
    Process a kustomization directory. This flag can't be used together with -f or -R.

> kubectl kustomize --help |head -n8
Build a set of KRM resources using a 'kustomization.yaml' file. The DIR
argument must be a path to a directory containing 'kustomization.yaml', or a
git repository URL with a path suffix specifying same with respect to the
repository root. If DIR is omitted, '.' is assumed.

Examples:
  # Build the current working directory
  kubectl kustomize

  # Build some shared configuration directory
  kubectl kustomize /home/config/production

I don’t know how I’ve missed this change, but it’s nice to know.

More info:

Tags: kubernetes

Categories: Kubernetes TIL

Updated: September 9, 2022

Previous Next

You May Also Enjoy


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK