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

NAME

6       kubectl  apply  view-last-applied - View latest last-applied-configura‐
7       tion 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       -o, --output="yaml"
38           Output format. Must be one of yaml|json
39
40
41       -R, --recursive=false
42           Process the directory used in -f,  --filename  recursively.  Useful
43       when  you  want  to  manage related manifests organized within the same
44       directory.
45
46
47       -l, --selector=""
48           Selector (label query)  to  filter  on,  supports  '=',  '==',  and
49       '!='.(e.g. -l key1=value1,key2=value2)
50
51
52

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

315                # View the last-applied-configuration annotations by type/name in YAML.
316                kubectl apply view-last-applied deployment/nginx
317
318                # View the last-applied-configuration annotations by file in JSON
319                kubectl apply view-last-applied -f deploy.yaml -o json
320
321
322
323

SEE ALSO

325       kubectl-apply(1),
326
327
328

HISTORY

330       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
331       com) based on the kubernetes source material, but hopefully  they  have
332       been automatically generated since!
333
334
335
336Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum