1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl kustomize - Build a kustomization target from a directory or
10 URL.
11
12
13
15 kubectl kustomize [OPTIONS]
16
17
18
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
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
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 --insecure-skip-tls-verify=false If true, the server's certificate
111 will not be checked for validity. This will make your HTTPS connections
112 insecure
113
114
115 --kubeconfig="" Path to the kubeconfig file to use for CLI re‐
116 quests.
117
118
119 --match-server-version=false Require server version to match
120 client version
121
122
123 -n, --namespace="" If present, the namespace scope for this CLI
124 request
125
126
127 --password="" Password for basic authentication to the API server
128
129
130 --profile="none" Name of profile to capture. One of
131 (none|cpu|heap|goroutine|threadcreate|block|mutex)
132
133
134 --profile-output="profile.pprof" Name of the file to write the
135 profile to
136
137
138 --request-timeout="0" The length of time to wait before giving up
139 on a single server request. Non-zero values should contain a corre‐
140 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
141 out requests.
142
143
144 -s, --server="" The address and port of the Kubernetes API server
145
146
147 --tls-server-name="" Server name to use for server certificate
148 validation. If it is not provided, the hostname used to contact the
149 server is used
150
151
152 --token="" Bearer token for authentication to the API server
153
154
155 --user="" The name of the kubeconfig user to use
156
157
158 --username="" Username for basic authentication to the API server
159
160
161 --version=false Print version information and quit
162
163
164 --warnings-as-errors=false Treat warnings received from the server
165 as errors and exit with a non-zero exit code
166
167
168
170 # Build the current working directory
171 kubectl kustomize
172
173 # Build some shared configuration directory
174 kubectl kustomize /home/config/production
175
176 # Build from github
177 kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
178
179
180
181
183 kubectl(1),
184
185
186
188 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
189 com) based on the kubernetes source material, but hopefully they have
190 been automatically generated since!
191
192
193
194Manuals User KUBERNETES(1)(kubernetes)