kubectl kustomize [page]deterministic
Build a kustomization target from a directory or URL
##
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.
``` kubectl kustomize DIR [flags] ```
##
``` # 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 ```
##
<table style="width: 100%; table-layout: fixed;"> <colgroup> <col span="1" style="width: 10px;" /> <col span="1" /> </colgroup> <tbody>
<tr> <td colspan="2">--as-current-user</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>use the uid and gid of the command executor to run the function in the container</p></td> </tr>
<tr> <td colspan="2">--enable-alpha-plugins</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>enable kustomize plugins</p></td> </tr>
<tr> <td colspan="2">--enable-helm</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Enable use of the Helm chart inflator generator.</p></td> </tr>
<tr> <td colspan="2">-e, --env strings</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>a list of environment variables to be used by functions</p></td> </tr>
<tr> <td colspan="2">--helm-api-versions strings</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Kubernetes api versions used by Helm for Capabilities.APIVersions</p></td> </tr>
<tr> <td colspan="2">--helm-command string Default: "helm"</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>helm command (path to executable)</p></td> </tr>
<tr> <td colspan="2">--helm-debug</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Enable debug output from the Helm chart inflator generator.</p></td> </tr>
<tr> <td colspan="2">--helm-kube-version string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Kubernetes version used by Helm for Capabilities.KubeVersion</p></td> </tr>
<tr> <td colspan="2">-h, --help</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>help for kustomize</p></td> </tr>
<tr> <td colspan="2">--load-restrictor string Default: "LoadRestrictionsRootOnly"</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization.</p></td> </tr>
<tr> <td colspan="2">--mount strings</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>a list of storage options read from the filesystem</p></td> </tr>
<tr> <td colspan="2">--network</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>enable network access for functions that declare it</p></td> </tr>
<tr> <td colspan="2">--network-name string Default: "bridge"</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>the docker network to run the container in</p></td> </tr>
<tr> <td colspan="2">-o, --output string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>If specified, write output to this path.</p></td> </tr>
</tbody> </table>
##
<table style="width: 100%; table-layout: fixed;"> <colgroup> <col span="1" style="width: 10px;" /> <col span="1" /> </colgroup> <tbody>
<tr> <td colspan="2">--as string</td> </tr> <tr> <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Username to impersonate for the operation. User could be a regular u …(trimmed)