openshift-admin-ipfailover man page

openshift admin ipfailover — Install an IP failover group to a set of nodes


openshift admin ipfailover [Options]


Configure or view IP Failover configuration

This command helps to setup an IP failover configuration for the cluster. An administrator can configure IP failover on an entire cluster or on a subset of nodes (as defined via a labeled selector).

If an IP failover configuration does not exist with the given name, the --create flag can be passed to create a deployment configuration that will provide IP failover capability. If you are running in production, it is recommended that the labeled selector for the nodes matches at least 2 nodes to ensure you have failover protection, and that you provide a --replicas= <n> value that matches the number of nodes for the given labeled selector.



Create the configuration if it does not exist.


Path to a .kubeconfig file that will contain the credentials the router should use to contact the master.


If true, show the result of the operation without performing it.


The image to base this IP failover configurator on - ${component} will be replaced based on --type.

-i, --interface=""

Network interface bound by VRRP to use for the set of virtual IP ranges/addresses specified.


Add a rule to this iptables chain to accept multicast packets if no rule exists. When iptables-chain is empty do not change iptables.


If true, attempt to use the latest images instead of the current release

-o, --output=""

Output results as yaml or json instead of executing, or use name for succint output (resource/name).


The preferred API versions of the output objects

-r, --replicas=1

The replication factor of this IP failover configuration; commonly 2 when high availability is desired. Please ensure this matches the number of nodes that satisfy the selector (or default selector) specified.

-l, --selector="ipfailover=<name>"

Selector (label query) to filter nodes on.


Name of the service account to use to run the ipfailover pod.


The type of IP failover configurator to use.


A set of virtual IP ranges and/or addresses that the routers bind and serve on and provide IP failover capability for.


Offset to use for setting ids of VRRP instances (default offset is 0). This allows multiple ipfailover instances to run within the same cluster.

-w, --watch-port=80

Port to monitor or watch for resource availability.

Options Inherited from Parent Commands


DEPRECATED: The API version to use when talking to the server


Username to impersonate for the operation


Path to a cert. file for the certificate authority


Path to a client certificate file for TLS


Path to a client key file for TLS


The name of the kubeconfig cluster to use


Path to the config file to use for CLI requests.


The name of the kubeconfig context to use


The Google Cloud Platform Service Account JSON Key to use for authentication.


If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure


Maximum number of seconds between log flushes


Require server version to match client version

-n, --namespace=""

If present, the namespace scope for this CLI request


The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.


The address and port of the Kubernetes API server


Bearer token for authentication to the API server


The name of the kubeconfig user to use


  # Check the default IP failover configuration ("ipfailover"):
  openshift admin ipfailover
  # See what the IP failover configuration would look like if it is created:
  openshift admin ipfailover -o json
  # Create an IP failover configuration if it does not already exist:
  openshift admin ipfailover ipf --virtual-ips="" --create
  # Create an IP failover configuration on a selection of nodes labeled
  # "router=us-west-ha" (on 4 nodes with 7 virtual IPs monitoring a service
  # listening on port 80, such as the router process).
  openshift admin ipfailover ipfailover --selector="router=us-west-ha" --virtual-ips=",," --watch-port=80 --replicas=4 --create
  # Use a different IP failover config image and see the configuration:
  openshift admin ipfailover ipf-alt --selector="hagroup=us-west-ha" --virtual-ips="" -o yaml --images=myrepo/myipfailover:mytag

See Also



June 2016, Ported from the Kubernetes man-doc generator

Referenced By


Openshift CLI User Manuals June 2016