1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl apply view-last-applied - View latest
7       last-applied-configuration annotations of a resource/object
8
9
10

SYNOPSIS

12       kubectl apply view-last-applied [OPTIONS]
13
14
15

DESCRIPTION

17       View the latest last-applied-configuration annotations by type/name or
18       file.
19
20
21       The default output will be printed to stdout in YAML format. One can
22       use -o option to change output format.
23
24
25

OPTIONS

27       --all=false
28           Select all resources in the namespace of the specified resource
29       types
30
31
32       -f, --filename=[]
33           Filename, directory, or URL to files that contains the
34       last-applied-configuration annotations
35
36
37       -k, --kustomize=""
38           Process the kustomization directory. This flag can't be used
39       together with -f or -R.
40
41
42       -o, --output="yaml"
43           Output format. Must be one of yaml|json
44
45
46       -R, --recursive=false
47           Process the directory used in -f, --filename recursively. Useful
48       when you want to manage related manifests organized within the same
49       directory.
50
51
52       -l, --selector=""
53           Selector (label query) to filter on, supports '=', '==', and
54       '!='.(e.g. -l key1=value1,key2=value2)
55
56
57

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

361                # View the last-applied-configuration annotations by type/name in YAML.
362                kubectl apply view-last-applied deployment/nginx
363
364                # View the last-applied-configuration annotations by file in JSON
365                kubectl apply view-last-applied -f deploy.yaml -o json
366
367
368
369

SEE ALSO

371       kubectl-apply(1),
372
373
374

HISTORY

376       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
377       com) based on the kubernetes source material, but hopefully they have
378       been automatically generated since!
379
380
381
382Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum