1OC EX(1) June 2016 OC EX(1)
2
3
4
6 oc ex ipfailover - Install an IP failover group to a set of nodes
7
8
9
11 oc ex ipfailover [OPTIONS]
12
13
14
16 Configure or view IP Failover configuration
17
18
19 This command helps to setup an IP failover configuration for the clus‐
20 ter. An administrator can configure IP failover on an entire cluster or
21 on a subset of nodes (as defined via a labeled selector).
22
23
24 If an IP failover configuration does not exist with the given name, the
25 --create flag can be passed to create a deployment configuration that
26 will provide IP failover capability. If you are running in production,
27 it is recommended that the labeled selector for the nodes matches at
28 least 2 nodes to ensure you have failover protection, and that you pro‐
29 vide a --replicas= <n> value that matches the number of nodes for the
30 given labeled selector.
31
32
33
35 --check-interval=2
36 Run the check-script at this interval (seconds)
37
38
39 --check-script=""
40 Run this script at the check-interval to verify service is OK
41
42
43 --create=false
44 If true, create the configuration if it does not exist.
45
46
47 --dry-run=false
48 If true, show the result of the operation without performing it.
49
50
51 --images="openshift/origin-${component}:${version}"
52 The image to base this IP failover configurator on - ${component}
53 will be replaced based on --type.
54
55
56 -i, --interface=""
57 Network interface bound by VRRP to use for the set of virtual IP
58 ranges/addresses specified.
59
60
61 --iptables-chain="INPUT"
62 Add a rule to this iptables chain to accept 224.0.0.28 multicast
63 packets if no rule exists. When iptables-chain is empty do not change
64 iptables.
65
66
67 --latest-images=false
68 If true, attempt to use the latest images instead of the current
69 release
70
71
72 --notify-script=""
73 Run this script when state changes.
74
75
76 -o, --output=""
77 Output results as yaml or json instead of executing, or use name
78 for succint output (resource/name).
79
80
81 --output-version=""
82 The preferred API versions of the output objects
83
84
85 --preemption-strategy="preempt_delay 300"
86 Normlly VRRP will preempt a lower priority machine when a higher
87 priority one comes online. 'nopreempt' allows the lower priority
88 machine to maintain its MASTER status. The default 'preempt_delay 300'
89 causes MASTER to switch after 5 min.
90
91
92 -r, --replicas=1
93 The replication factor of this IP failover configuration; commonly
94 2 when high availability is desired. Please ensure this matches the
95 number of nodes that satisfy the selector (or default selector) speci‐
96 fied.
97
98
99 -l, --selector="ipfailover=<name>"
100 Selector (label query) to filter nodes on.
101
102
103 --service-account="ipfailover"
104 Name of the service account to use to run the ipfailover pod.
105
106
107 -a, --show-all=false
108 When printing, show all resources (default hide terminated pods.)
109
110
111 --show-labels=false
112 When printing, show all labels as the last column (default hide
113 labels column)
114
115
116 --sort-by=""
117 If non-empty, sort list types using this field specification. The
118 field specification is expressed as a JSONPath expression (e.g.
119 '{.metadata.name}'). The field in the API resource specified by this
120 JSONPath expression must be an integer or a string.
121
122
123 --template=""
124 Template string or path to template file to use when -o=go-tem‐
125 plate, -o=go-template-file. The template format is golang templates [
126 ⟨http://golang.org/pkg/text/template/#pkg-overview⟩].
127
128
129 --type="keepalived"
130 The type of IP failover configurator to use.
131
132
133 --virtual-ip-groups=0
134 Number of groups to create for VRRP, if not set a group will be
135 created for each virtual ip given on --virtual-ips.
136
137
138 --virtual-ips=""
139 A set of virtual IP ranges and/or addresses that the routers bind
140 and serve on and provide IP failover capability for.
141
142
143 --vrrp-id-offset=0
144 Offset to use for setting ids of VRRP instances (default offset is
145 0). This allows multiple ipfailover instances to run within the same
146 cluster.
147
148
149 -w, --watch-port=80
150 Port to monitor or watch for resource availability.
151
152
153
155 --allow_verification_with_non_compliant_keys=false
156 Allow a SignatureVerifier to use keys which are technically
157 non-compliant with RFC6962.
158
159
160 --alsologtostderr=false
161 log to standard error as well as files
162
163
164 --application_metrics_count_limit=100
165 Max number of application metrics to store (per container)
166
167
168 --as=""
169 Username to impersonate for the operation
170
171
172 --as-group=[]
173 Group to impersonate for the operation, this flag can be repeated
174 to specify multiple groups.
175
176
177 --azure-container-registry-config=""
178 Path to the file containing Azure container registry configuration
179 information.
180
181
182 --boot_id_file="/proc/sys/kernel/random/boot_id"
183 Comma-separated list of files to check for boot-id. Use the first
184 one that exists.
185
186
187 --cache-dir="/builddir/.kube/http-cache"
188 Default HTTP cache directory
189
190
191 --certificate-authority=""
192 Path to a cert file for the certificate authority
193
194
195 --client-certificate=""
196 Path to a client certificate file for TLS
197
198
199 --client-key=""
200 Path to a client key file for TLS
201
202
203 --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
204 CIDRs opened in GCE firewall for LB traffic proxy health checks
205
206
207 --cluster=""
208 The name of the kubeconfig cluster to use
209
210
211 --container_hints="/etc/cadvisor/container_hints.json"
212 location of the container hints file
213
214
215 --containerd="unix:///var/run/containerd.sock"
216 containerd endpoint
217
218
219 --context=""
220 The name of the kubeconfig context to use
221
222
223 --default-not-ready-toleration-seconds=300
224 Indicates the tolerationSeconds of the toleration for
225 notReady:NoExecute that is added by default to every pod that does not
226 already have such a toleration.
227
228
229 --default-unreachable-toleration-seconds=300
230 Indicates the tolerationSeconds of the toleration for unreach‐
231 able:NoExecute that is added by default to every pod that does not
232 already have such a toleration.
233
234
235 --docker="unix:///var/run/docker.sock"
236 docker endpoint
237
238
239 --docker-tls=false
240 use TLS to connect to docker
241
242
243 --docker-tls-ca="ca.pem"
244 path to trusted CA
245
246
247 --docker-tls-cert="cert.pem"
248 path to client certificate
249
250
251 --docker-tls-key="key.pem"
252 path to private key
253
254
255 --docker_env_metadata_whitelist=""
256 a comma-separated list of environment variable keys that needs to
257 be collected for docker containers
258
259
260 --docker_only=false
261 Only report docker containers in addition to root stats
262
263
264 --docker_root="/var/lib/docker"
265 DEPRECATED: docker root is read from docker info (this is a fall‐
266 back, default: /var/lib/docker)
267
268
269 --enable_load_reader=false
270 Whether to enable cpu load reader
271
272
273 --event_storage_age_limit="default=24h"
274 Max length of time for which to store events (per type). Value is a
275 comma separated list of key values, where the keys are event types
276 (e.g.: creation, oom) or "default" and the value is a duration. Default
277 is applied to all non-specified event types
278
279
280 --event_storage_event_limit="default=100000"
281 Max number of events to store (per type). Value is a comma sepa‐
282 rated list of key values, where the keys are event types (e.g.: cre‐
283 ation, oom) or "default" and the value is an integer. Default is
284 applied to all non-specified event types
285
286
287 --global_housekeeping_interval=0
288 Interval between global housekeepings
289
290
291 --housekeeping_interval=0
292 Interval between container housekeepings
293
294
295 --httptest.serve=""
296 if non-empty, httptest.NewServer serves on this address and blocks
297
298
299 --insecure-skip-tls-verify=false
300 If true, the server's certificate will not be checked for validity.
301 This will make your HTTPS connections insecure
302
303
304 --kubeconfig=""
305 Path to the kubeconfig file to use for CLI requests.
306
307
308 --log-flush-frequency=0
309 Maximum number of seconds between log flushes
310
311
312 --log_backtrace_at=:0
313 when logging hits line file:N, emit a stack trace
314
315
316 --log_cadvisor_usage=false
317 Whether to log the usage of the cAdvisor container
318
319
320 --log_dir=""
321 If non-empty, write log files in this directory
322
323
324 --logtostderr=true
325 log to standard error instead of files
326
327
328 --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
329 Comma-separated list of files to check for machine-id. Use the
330 first one that exists.
331
332
333 --match-server-version=false
334 Require server version to match client version
335
336
337 -n, --namespace=""
338 If present, the namespace scope for this CLI request
339
340
341 --request-timeout="0"
342 The length of time to wait before giving up on a single server
343 request. Non-zero values should contain a corresponding time unit (e.g.
344 1s, 2m, 3h). A value of zero means don't timeout requests.
345
346
347 -s, --server=""
348 The address and port of the Kubernetes API server
349
350
351 --stderrthreshold=2
352 logs at or above this threshold go to stderr
353
354
355 --storage_driver_buffer_duration=0
356 Writes in the storage driver will be buffered for this duration,
357 and committed to the non memory backends as a single transaction
358
359
360 --storage_driver_db="cadvisor"
361 database name
362
363
364 --storage_driver_host="localhost:8086"
365 database host:port
366
367
368 --storage_driver_password="root"
369 database password
370
371
372 --storage_driver_secure=false
373 use secure connection with database
374
375
376 --storage_driver_table="stats"
377 table name
378
379
380 --storage_driver_user="root"
381 database username
382
383
384 --token=""
385 Bearer token for authentication to the API server
386
387
388 --user=""
389 The name of the kubeconfig user to use
390
391
392 -v, --v=0
393 log level for V logs
394
395
396 --version=false
397 Print version information and quit
398
399
400 --vmodule=
401 comma-separated list of pattern=N settings for file-filtered log‐
402 ging
403
404
405
407 # Check the default IP failover configuration ("ipfailover"):
408 oc ex ipfailover
409
410 # See what the IP failover configuration would look like if it is created:
411 oc ex ipfailover -o json
412
413 # Create an IP failover configuration if it does not already exist:
414 oc ex ipfailover ipf --virtual-ips="10.1.1.1-4" --create
415
416 # Create an IP failover configuration on a selection of nodes labeled
417 # "router=us-west-ha" (on 4 nodes with 7 virtual IPs monitoring a service
418 # listening on port 80, such as the router process).
419 oc ex ipfailover ipfailover --selector="router=us-west-ha" --virtual-ips="1.2.3.4,10.1.1.100-104,5.6.7.8" --watch-port=80 --replicas=4 --create
420
421 # Use a different IP failover config image and see the configuration:
422 oc ex ipfailover ipf-alt --selector="hagroup=us-west-ha" --virtual-ips="1.2.3.4" -o yaml --images=myrepo/myipfailover:mytag
423
424
425
426
428 oc-ex(1),
429
430
431
433 June 2016, Ported from the Kubernetes man-doc generator
434
435
436
437Openshift Openshift CLI User Manuals OC EX(1)