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

NAME

9       kubectl apply view-last-applied - View the latest last-applied-configu‐
10       ration annotations of a resource/object
11
12
13

SYNOPSIS

15       kubectl apply view-last-applied [OPTIONS]
16
17
18

DESCRIPTION

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

OPTIONS

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

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

155                # View the last-applied-configuration annotations by type/name in YAML
156                kubectl apply view-last-applied deployment/nginx
157
158                # View the last-applied-configuration annotations by file in JSON
159                kubectl apply view-last-applied -f deploy.yaml -o json
160
161
162
163

SEE ALSO

165       kubectl-apply(1),
166
167
168

HISTORY

170       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
171       com) based on the kubernetes source material, but hopefully  they  have
172       been automatically generated since!
173
174
175
176Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum