kubectl kustomize --help

From wikieduonline
Jump to navigation Jump to search

kubectl kustomize --help
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.

  # 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

	use the uid and gid of the command executor to run the function in the container

	enable kustomize plugins

	Enable use of the Helm chart inflator generator.

    -e, --env=[]:
	a list of environment variables to be used by functions

	helm command (path to executable)

	if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does,
	however, break the relocatability of the kustomization.

	a list of storage options read from the filesystem

	enable network access for functions that declare it

	the docker network to run the container in

    -o, --output='':
	If specified, write output to this path.

	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.

  kubectl kustomize DIR [flags] [options]

Use "kubectl options" for a list of global command-line options (applies to all commands).

See also[edit]