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       --insecure-skip-tls-verify=false      If true, the server's certificate
92       will not be checked for validity. This will make your HTTPS connections
93       insecure
94
95
96       --kubeconfig=""       Path  to  the  kubeconfig file to use for CLI re‐
97       quests.
98
99
100       --match-server-version=false       Require  server  version  to   match
101       client version
102
103
104       -n,  --namespace=""       If  present, the namespace scope for this CLI
105       request
106
107
108       --password=""      Password for basic authentication to the API server
109
110
111       --profile="none"        Name   of   profile   to   capture.   One    of
112       (none|cpu|heap|goroutine|threadcreate|block|mutex)
113
114
115       --profile-output="profile.pprof"       Name  of  the  file to write the
116       profile to
117
118
119       --request-timeout="0"      The length of time to wait before giving  up
120       on  a  single  server  request. Non-zero values should contain a corre‐
121       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
122       out requests.
123
124
125       -s, --server=""      The address and port of the Kubernetes API server
126
127
128       --tls-server-name=""       Server  name  to  use for server certificate
129       validation. If it is not provided, the hostname  used  to  contact  the
130       server is used
131
132
133       --token=""      Bearer token for authentication to the API server
134
135
136       --user=""      The name of the kubeconfig user to use
137
138
139       --username=""      Username for basic authentication to the API server
140
141
142       --version=false      Print version information and quit
143
144
145       --warnings-as-errors=false      Treat warnings received from the server
146       as errors and exit with a non-zero exit code
147
148
149

EXAMPLE

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

SEE ALSO

161       kubectl-apply(1),
162
163
164

HISTORY

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