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       --allow-id-changes=false      enable changes to a resourceId
29
30
31       --enable-alpha-plugins=false      enable kustomize plugins
32
33
34       --enable-managedby-label=false          enable     adding    app.kuber‐
35       netes.io/managed-by
36
37
38       -e, --env=[]      a list of environment variables to be used  by  func‐
39       tions
40
41
42       --load-restrictor="LoadRestrictionsRootOnly"        if  set  to  'Load‐
43       RestrictionsNone', local kustomizations may  load  files  from  outside
44       their  root.  This  does, however, break the relocatability of the kus‐
45       tomization.
46
47
48       --mount=[]      a list of storage options read from the filesystem
49
50
51       --network=false      enable network access for functions  that  declare
52       it
53
54
55       --network-name="bridge"      the docker network to run the container in
56
57
58       -o, --output=""      If specified, write output to this path.
59
60
61       --reorder="legacy"       Reorder  the resources just before output. Use
62       'legacy' to apply a legacy reordering (Namespaces first, Webhooks last,
63       etc). Use 'none' to suppress a final reordering.
64
65
66

OPTIONS INHERITED FROM PARENT COMMANDS

68       --add-dir-header=false       If  true,  adds  the file directory to the
69       header of the log messages
70
71
72       --alsologtostderr=false      log to standard error as well as files
73
74
75       --application-metrics-count-limit=100      Max  number  of  application
76       metrics to store (per container)
77
78
79       --as=""      Username to impersonate for the operation
80
81
82       --as-group=[]       Group  to  impersonate for the operation, this flag
83       can be repeated to specify multiple groups.
84
85
86       --azure-container-registry-config=""      Path to the  file  containing
87       Azure container registry configuration information.
88
89
90       --boot-id-file="/proc/sys/kernel/random/boot_id"        Comma-separated
91       list of files to check for boot-id. Use the first one that exists.
92
93
94       --cache-dir="/builddir/.kube/cache"      Default cache directory
95
96
97       --certificate-authority=""      Path to a cert file for the certificate
98       authority
99
100
101       --client-certificate=""      Path to a client certificate file for TLS
102
103
104       --client-key=""      Path to a client key file for TLS
105
106
107       --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
108            CIDRs opened in GCE firewall for  L7  LB  traffic  proxy    health
109       checks
110
111
112       --cloud-provider-gce-lb-src-cidrs=130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16
113            CIDRs opened in GCE firewall for  L4  LB  traffic  proxy    health
114       checks
115
116
117       --cluster=""      The name of the kubeconfig cluster to use
118
119
120       --container-hints="/etc/cadvisor/container_hints.json"      location of
121       the container hints file
122
123
124       --containerd="/run/containerd/containerd.sock"      containerd endpoint
125
126
127       --containerd-namespace="k8s.io"      containerd namespace
128
129
130       --context=""      The name of the kubeconfig context to use
131
132
133       --default-not-ready-toleration-seconds=300      Indicates  the  tolera‐
134       tionSeconds  of  the toleration for notReady:NoExecute that is added by
135       default to every pod that does not already have such a toleration.
136
137
138       --default-unreachable-toleration-seconds=300      Indicates the tolera‐
139       tionSeconds  of  the toleration for unreachable:NoExecute that is added
140       by default to every pod that does not already have such a toleration.
141
142
143       --disable-root-cgroup-stats=false      Disable collecting  root  Cgroup
144       stats
145
146
147       --docker="unix:///var/run/docker.sock"      docker endpoint
148
149
150       --docker-env-metadata-whitelist=""      a comma-separated list of envi‐
151       ronment variable keys matched with specified prefix that  needs  to  be
152       collected for docker containers
153
154
155       --docker-only=false       Only  report docker containers in addition to
156       root stats
157
158
159       --docker-root="/var/lib/docker"      DEPRECATED: docker  root  is  read
160       from docker info (this is a fallback, default: /var/lib/docker)
161
162
163       --docker-tls=false      use TLS to connect to docker
164
165
166       --docker-tls-ca="ca.pem"      path to trusted CA
167
168
169       --docker-tls-cert="cert.pem"      path to client certificate
170
171
172       --docker-tls-key="key.pem"      path to private key
173
174
175       --enable-load-reader=false      Whether to enable cpu load reader
176
177
178       --event-storage-age-limit="default=0"      Max length of time for which
179       to store events (per type). Value is a comma separated list of key val‐
180       ues,  where the keys are event types (e.g.: creation, oom) or "default"
181       and the value is a duration. Default is applied  to  all  non-specified
182       event types
183
184
185       --event-storage-event-limit="default=0"       Max  number  of events to
186       store (per type). Value is a comma separated list of key values,  where
187       the  keys  are  event  types (e.g.: creation, oom) or "default" and the
188       value is an integer. Default is  applied  to  all  non-specified  event
189       types
190
191
192       --global-housekeeping-interval=1m0s      Interval between global house‐
193       keepings
194
195
196       --housekeeping-interval=10s      Interval between container  housekeep‐
197       ings
198
199
200       --insecure-skip-tls-verify=false      If true, the server's certificate
201       will not be checked for validity. This will make your HTTPS connections
202       insecure
203
204
205       --kubeconfig=""       Path  to  the  kubeconfig file to use for CLI re‐
206       quests.
207
208
209       --log-backtrace-at=:0      when logging hits line file:N, emit a  stack
210       trace
211
212
213       --log-cadvisor-usage=false       Whether to log the usage of the cAdvi‐
214       sor container
215
216
217       --log-dir=""      If non-empty, write log files in this directory
218
219
220       --log-file=""      If non-empty, use this log file
221
222
223       --log-file-max-size=1800      Defines the maximum size a log  file  can
224       grow to. Unit is megabytes. If the value is 0, the maximum file size is
225       unlimited.
226
227
228       --log-flush-frequency=5s      Maximum number  of  seconds  between  log
229       flushes
230
231
232       --logtostderr=true      log to standard error instead of files
233
234
235       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
236            Comma-separated list of files to check  for  machine-id.  Use  the
237       first one that exists.
238
239
240       --match-server-version=false        Require  server  version  to  match
241       client version
242
243
244       -n, --namespace=""      If present, the namespace scope  for  this  CLI
245       request
246
247
248       --one-output=false      If true, only write logs to their native sever‐
249       ity level (vs also writing to each lower severity level)
250
251
252       --password=""      Password for basic authentication to the API server
253
254
255       --profile="none"        Name   of   profile   to   capture.   One    of
256       (none|cpu|heap|goroutine|threadcreate|block|mutex)
257
258
259       --profile-output="profile.pprof"       Name  of  the  file to write the
260       profile to
261
262
263       --referenced-reset-interval=0      Reset interval for referenced  bytes
264       (container_referenced_bytes metric), number of measurement cycles after
265       which referenced bytes are cleared, if set to 0  referenced  bytes  are
266       never cleared (default: 0)
267
268
269       --request-timeout="0"       The length of time to wait before giving up
270       on a single server request. Non-zero values  should  contain  a  corre‐
271       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
272       out requests.
273
274
275       -s, --server=""      The address and port of the Kubernetes API server
276
277
278       --skip-headers=false      If true, avoid header  prefixes  in  the  log
279       messages
280
281
282       --skip-log-headers=false       If  true, avoid headers when opening log
283       files
284
285
286       --stderrthreshold=2      logs at or above this threshold go to stderr
287
288
289       --storage-driver-buffer-duration=1m0s      Writes in the storage driver
290       will  be  buffered  for  this duration, and committed to the non memory
291       backends as a single transaction
292
293
294       --storage-driver-db="cadvisor"      database name
295
296
297       --storage-driver-host="localhost:8086"      database host:port
298
299
300       --storage-driver-password="root"      database password
301
302
303       --storage-driver-secure=false      use secure connection with database
304
305
306       --storage-driver-table="stats"      table name
307
308
309       --storage-driver-user="root"      database username
310
311
312       --tls-server-name=""      Server name to  use  for  server  certificate
313       validation.  If  it  is  not provided, the hostname used to contact the
314       server is used
315
316
317       --token=""      Bearer token for authentication to the API server
318
319
320       --update-machine-info-interval=5m0s      Interval between machine  info
321       updates.
322
323
324       --user=""      The name of the kubeconfig user to use
325
326
327       --username=""      Username for basic authentication to the API server
328
329
330       -v, --v=0      number for the log level verbosity
331
332
333       --version=false      Print version information and quit
334
335
336       --vmodule=        comma-separated   list   of  pattern=N  settings  for
337       file-filtered logging
338
339
340       --warnings-as-errors=false      Treat warnings received from the server
341       as errors and exit with a non-zero exit code
342
343
344

EXAMPLE

346                # Build the current working directory
347                kubectl kustomize
348
349                # Build some shared configuration directory
350                kubectl kustomize /home/config/production
351
352                # Build from github
353                kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
354
355
356
357

SEE ALSO

359       kubectl(1),
360
361
362

HISTORY

364       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
365       com) based on the kubernetes source material, but hopefully  they  have
366       been automatically generated since!
367
368
369
370Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum