1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl  kustomize  -  Build a kustomization target from a directory or
10       URL
11
12
13

SYNOPSIS

15       kubectl kustomize [OPTIONS]
16
17
18

DESCRIPTION

20       Build a set of KRM resources using a 'kustomization.yaml' file. The DIR
21       argument must be a path to a directory containing 'kustomization.yaml',
22       or a git repository URL with a path suffix specifying same with respect
23       to the repository root. If DIR is omitted, '.' is assumed.
24
25
26

OPTIONS

28       --as-current-user=false       use the uid and gid of the command execu‐
29       tor to run the function in the container
30
31
32       --enable-alpha-plugins=false      enable kustomize plugins
33
34
35       --enable-helm=false      Enable use of the Helm chart inflator  genera‐
36       tor.
37
38
39       --enable-managedby-label=false          enable     adding    app.kuber‐
40       netes.io/managed-by
41
42
43       -e, --env=[]      a list of environment variables to be used  by  func‐
44       tions
45
46
47       --helm-command="helm"      helm command (path to executable)
48
49
50       --load-restrictor="LoadRestrictionsRootOnly"        if  set  to  'Load‐
51       RestrictionsNone', local kustomizations may  load  files  from  outside
52       their  root.  This  does, however, break the relocatability of the kus‐
53       tomization.
54
55
56       --mount=[]      a list of storage options read from the filesystem
57
58
59       --network=false      enable network access for functions  that  declare
60       it
61
62
63       --network-name="bridge"      the docker network to run the container in
64
65
66       -o, --output=""      If specified, write output to this path.
67
68
69       --reorder="legacy"       Reorder  the resources just before output. Use
70       'legacy' to apply a legacy reordering (Namespaces first, Webhooks last,
71       etc). Use 'none' to suppress a final reordering.
72
73
74

OPTIONS INHERITED FROM PARENT COMMANDS

76       --as=""      Username to impersonate for the operation. User could be a
77       regular user or a service account in a namespace.
78
79
80       --as-group=[]      Group to impersonate for the  operation,  this  flag
81       can be repeated to specify multiple groups.
82
83
84       --as-uid=""      UID to impersonate for the operation.
85
86
87       --azure-container-registry-config=""       Path  to the file containing
88       Azure container registry configuration information.
89
90
91       --cache-dir="/builddir/.kube/cache"      Default cache directory
92
93
94       --certificate-authority=""      Path to a cert file for the certificate
95       authority
96
97
98       --client-certificate=""      Path to a client certificate file for TLS
99
100
101       --client-key=""      Path to a client key file for TLS
102
103
104       --cluster=""      The name of the kubeconfig cluster to use
105
106
107       --context=""      The name of the kubeconfig context to use
108
109
110       --disable-compression=false       If true, opt-out of response compres‐
111       sion for all requests to the server
112
113
114       --insecure-skip-tls-verify=false      If true, the server's certificate
115       will not be checked for validity. This will make your HTTPS connections
116       insecure
117
118
119       --kubeconfig=""      Path to the kubeconfig file to  use  for  CLI  re‐
120       quests.
121
122
123       --match-server-version=false        Require  server  version  to  match
124       client version
125
126
127       -n, --namespace=""      If present, the namespace scope  for  this  CLI
128       request
129
130
131       --password=""      Password for basic authentication to the API server
132
133
134       --profile="none"         Name   of   profile   to   capture.   One   of
135       (none|cpu|heap|goroutine|threadcreate|block|mutex)
136
137
138       --profile-output="profile.pprof"      Name of the  file  to  write  the
139       profile to
140
141
142       --request-timeout="0"       The length of time to wait before giving up
143       on a single server request. Non-zero values  should  contain  a  corre‐
144       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
145       out requests.
146
147
148       -s, --server=""      The address and port of the Kubernetes API server
149
150
151       --tls-server-name=""      Server name to  use  for  server  certificate
152       validation.  If  it  is  not provided, the hostname used to contact the
153       server is used
154
155
156       --token=""      Bearer token for authentication to the API server
157
158
159       --user=""      The name of the kubeconfig user to use
160
161
162       --username=""      Username for basic authentication to the API server
163
164
165       --version=false      Print version information and quit
166
167
168       --warnings-as-errors=false      Treat warnings received from the server
169       as errors and exit with a non-zero exit code
170
171
172

EXAMPLE

174                # Build the current working directory
175                kubectl kustomize
176
177                # Build some shared configuration directory
178                kubectl kustomize /home/config/production
179
180                # Build from github
181                kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
182
183
184
185

SEE ALSO

187       kubectl(1),
188
189
190

HISTORY

192       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
193       com) based on the kubernetes source material, but hopefully  they  have
194       been automatically generated since!
195
196
197
198Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum