mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
774 B
Plaintext
30 lines
774 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# kubectl kustomize
|
|
|
|
> Build a set of Kubernetes resources using a `kustomization.yaml` file.
|
|
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_kustomize/>.
|
|
|
|
- Build resources from the current directory:
|
|
|
|
`kubectl kustomize`
|
|
|
|
- Build resources from a specific directory:
|
|
|
|
`kubectl kustomize {{path/to/directory}}`
|
|
|
|
- Build resources from a remote URL:
|
|
|
|
`kubectl kustomize {{https://github.com/user/repo/path}}`
|
|
|
|
- Build resources and save to a file:
|
|
|
|
`kubectl kustomize {{path/to/directory}} > {{output.yaml}}`
|
|
|
|
- Build resources with load restrictor disabled:
|
|
|
|
`kubectl kustomize --load-restrictor {{LoadRestrictionsNone}} {{path/to/directory}}`
|