Sample High Availability Configurations

This section provides a sample SMI Cluster Manager HA configuration with an Active and Standby nodes. The following parameters are used in this HA configuration:

  • Active Node Host Name: ha-active

  • Standby Node Host Name: ha-standby

  • Primary IP address for Active Node: <Primary_active_node_IPv4address>

  • Primary IP address for Standby Node: <Primary_standby_node_IPv4address>

  • Virtual IP address: <Virtual_IPv4address>

Defining a High Availability Configuration

The following examples defines the virtual IP address for the cluster named ha.
clusters ha
 configuration master-virtual-ip <Virtual_IPv4address>
 ... 
The following examples defines the two HA nodes.
nodes active
  ssh-ip <Primary_active_node_IPv4address>
  type k8s
  k8s node-type control-plane
  k8s hostname-override ha-active
  k8s ssh-ip        <Primary_active_node_IPv4address>
  k8s node-ip       <Virtual_IPv4address>
  ...
 exit
 nodes standby
  ssh-ip <Primary_standby_node_IPv4address>
  type k8s
  k8s node-type backup
  k8s ssh-ip <Primary_standby_node_IPv4address>
  k8s node-ip <Virtual_IPv4address>
  ...
 exit