High Availability (HA) for the Service Kubernetes Cluster
Prerequisites
Ensure that the
local_repo.ymlplaybook has been run successfully at least once. Before running it, verify that the/opt/omnia/input/project_default/software_config.jsonfile contains{"name": "service_k8s"}in thesoftwareslist.To enable and configure the HA for Service cluster, fill up the necessary parameters in the
high_availability_config.ymlconfig file present in the/opt/omnia/input/project_default/directory. Once the config file is updated, run theprepare_oim.ymlplaybook.Parameters for Service Cluster HA Parameter
Details
cluster_nameType: String
Captures the name of the service cluster on which HA will be set up. Default value:
service_cluster
enable_k8s_haType: Boolean
Possible values:
trueDefault value:
trueIndicates whether to enable HA for the Kubernetes (K8s) service node or not. Set to
trueto enable.
virtual_ip_addressType: String
This is a mandatory and user-configurable parameter.
Captures the virtual IP address for the K8s service node HA setup. Ensure that the
virtual_ip_addressdoes not belong to thedynamic_rangeorstatic_rangementioned in the network_spec.yml.Default value:
172.16.107.1
external_loadbalancer_ipType: IP address
Specify this to use an external load balancer instead of the kube-vip loadbalancer.
loadbalancer_portType: Port number
Captures the port for the external loadbalancer.
This port must be unique and not in use.
Note
Ensure to not use the 6443 port.
active_node_service_tagType: Comma-separated list
List of service tags of active K8s service nodes. Multiple tags can be provided with commas.
Note
Once the
prepare_oim.ymlplaybook has been executed, any subsequent edits to thehigh_availability_config.ymlorfunctional_groups_config.ymlfiles will not take effect. To apply changes made to these configuration files, you must re-run theprepare_oim.ymlplaybook.The virtual IP addresses specified in the
high_availability_config.ymlfile must be within the same subnet as the admin network.
Sample
service_k8s_cluster_ha:
- cluster_name: service_cluster
enable_k8s_ha: true
virtual_ip_address: ""
external_loadbalancer_ip: ""
loadbalancer_port:
active_node_service_tags: [ABCD123, DEF4567]
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.