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

NAME

6       kubectl diff - Diff live version against would-be applied version
7
8
9

SYNOPSIS

11       kubectl diff [OPTIONS]
12
13
14

DESCRIPTION

16       Diff  configurations specified by filename or stdin between the current
17       online configuration, and the configuration as it would be if applied.
18
19
20       Output is always YAML.
21
22
23       KUBECTL EXTERNAL DIFF environment variable can be used to  select  your
24       own diff command. By default, the "diff" command available in your path
25       will be run with "-u" (unicode) and "-N" (treat  new  files  as  empty)
26       options.
27
28
29

OPTIONS

31       -f, --filename=[]
32           Filename,  directory, or URL to files contains the configuration to
33       diff
34
35
36       -R, --recursive=false
37           Process the directory used in -f,  --filename  recursively.  Useful
38       when  you  want  to  manage related manifests organized within the same
39       directory.
40
41
42

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

320                # Diff resources included in pod.json.
321                kubectl diff -f pod.json
322
323                # Diff file read from stdin
324                cat service.yaml | kubectl diff -f -
325
326
327
328

SEE ALSO

330       kubectl(1),
331
332
333

HISTORY

335       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
336       com) based on the kubernetes source material, but hopefully  they  have
337       been automatically generated since!
338
339
340
341Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum