kustomize
Build the current working directory
kubectl kustomize
Build some shared configuration directory
kubectl kustomize /home/config/production
Build from github
kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
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.
Usage
$ kubectl kustomize DIR
Flags
Name | Shorthand | Default | Usage |
---|---|---|---|
as-current-user | false | use the uid and gid of the command executor to run the function in the container | |
enable-alpha-plugins | false | enable kustomize plugins | |
enable-helm | false | Enable use of the Helm chart inflator generator. | |
enable-managedby-label | false | enable adding app.kubernetes.io/managed-by | |
env | e | [] | a list of environment variables to be used by functions |
helm-command | helm | helm command (path to executable) | |
load-restrictor | LoadRestrictionsRootOnly | if set to ‘LoadRestrictionsNone’, local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization. | |
mount | [] | a list of storage options read from the filesystem | |
network | false | enable network access for functions that declare it | |
network-name | bridge | the docker network to run the container in | |
output | o | If specified, write output to this path. | |
reorder | legacy | Reorder the resources just before output. Use ‘legacy’ to apply a legacy reordering (Namespaces first, Webhooks last, etc). Use ‘none’ to suppress a final reordering. |
当前内容版权归 Kubernetes 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Kubernetes .