Set up High Availability (HA) Kubernetes on the Service Cluster
With Omnia, you can deploy a service Kubernetes cluster on the designated service nodes to efficiently distribute workload and manage resources for telemetry data collection.
This setup reduces the processing load on the OIM node and enhances overall scalability. Each service_kube_node is responsible for collecting telemetry data from its assigned subset of compute nodes.
Federated way of telemetry data collection improves efficiency for large-scale clusters.
Prerequisites
To deploy Kubernetes on service cluster, ensure that
service_k8sis added undersoftwaresin the/opt/omnia/input/project_default/software_config.json. Refer the sample config file below:{ "cluster_os_type": "rhel", "cluster_os_version": "10.0", "repo_config": "partial", "softwares": [ {"name": "service_k8s","version": "1.34.1", "arch": ["x86_64"]} ], "service_k8s": [ {"name": "service_kube_control_plane_first"}, {"name": "service_kube_control_plane"}, {"name": "service_kube_node"} ] }
Omnia supports only Kubernetes version 1.34.1.
If you want to install CSI PowerScale driver, ensure that you provide the required values. Click Deploy CSI drivers for Dell PowerScale storage solutions for more information.
Ensure that there are at least three
service_kube_control_planeentries and oneservice_kube_nodeentry in thepxe_mapping_file.csvfor the Kubernetes controller HA scenario.
Note
The above requirement is the minimum needed to deploy the service Kubernetes cluster. High availability applies only to the control plane. For workload and pod failover, it is recommended to have at least two service_kube_node nodes, so that pods can be rescheduled automatically if one worker node fails.
Ensure that the nfs server is reachable on all the diskless nodes.
The nodes must be equipped with two active Network Interface Cards (NICs):
One dedicated to internal cluster communication. It is used for internal cluster communication, Kubernetes deployment activities, and for accessing the Pulp repositories hosted on the OIM. The Admin interface must be assigned an IP address from the admin network range and must be reachable from the OIM.
One dedicated to Internet. If you want to install a CSI driver, ensure that the storage network must be accessible through the Internet-facing NIC. This NIC must be configured via DHCP.
To use NFS for service Kubernetes cluster, ensure the following prerequisites are met:
The NFS share has 755 permissions and
rw,sync,no_root_squash,no_subtree_checkare enabled on the mounted NFS share.Edit the
/etc/exportsfile on the NFS server to include therw,sync,no_root_squash,no_subtree_checkoption for theserver_share_path./<your_server_share_path> *(rw,sync,no_root_squash,no_subtree_check)
Steps
Run
local_repo.ymlplaybook to download the artifacts required to set up Kubernetes on the service cluster nodes.Fill the
omnia_config.yml,high_availability_config.yml(for service cluster HA), andstorage_config.yml. The nfs_name mentioned instorage_config.ymlshould match thenfs_storage_nameof the entries for theservice_k8s_clusterinomnia_config.ymlwhere deployment is set to true. See Input parameters for the cluster. The NFS share is utilized by the Kubernetes cluster to mount necessary resources. See the following sample:nfs_client_params: -{ server_ip: "", # Provide the IP of the NFS server server_share_path: "", # Provide server share path of the NFS Server client_share_path: /opt/omnia,, client_mount_options: "nosuid,rw,sync,hard,intr", nfs_name: nfs_k8s }
Note
In case of CSI support, ensure that the server_share_path must be the same as the isiPath value in values.yml file and the server_ip should be the Powerscale NFS server IP.
Note
Ensure that the server_share_path and client_share_path do not have any content before you deploy Kubernetes. To delete the content, go to server_share_path on NFS server and remove the content available in the path.
Note
Ensure that the pod_external_ip_range defined in the omnia_config.yml
file is reachable from the OpenManage Enterprise appliance and the SFM network.
Variables |
Mandatory/Optional |
Details |
|---|---|---|
|
Mandatory |
|
|
Mandatory |
|
|
Mandatory |
|
|
Mandatory |
|
|
Optional |
|
|
Optional |
|
|
Optional |
|
|
Optional |
|
|
Mandatory |
|
|
Mandatory |
|
Parameter |
Details |
|---|---|
|
|
|
|
|
|
Run
build_image_x86_64.ymlplaybook to build diskless images for cluster nodes. See Build cluster node images.Run
discovery.ymlplaybook to discover the potential cluster nodes, configure the boot script, and cloud-init based on the functional groups. See Discover cluster nodesAfter successfully running the
discovery.ymlplaybook, you can either manually PXE boot the nodes or use theset_pxe_boot.ymlplaybook. PXE booting allows the nodes to load diskless images from the Omnia Infrastructure Manager (OIM). For detailed steps on usingset_pxe_boot.yml, see Configure PXE Boot.
Additional Installations
After deploying Kubernetes, the following additional packages are installed on top of the Kubernetes stack on the service cluster:
nfs-client-provisioner
NFS subdir external provisioner is an automatic provisioner that use your existing and already configured external NFS server to support dynamic provisioning of Kubernetes Persistent Volumes via Persistent Volume Claims (PVC).
The nfs_name mentioned in
storage_config.ymlshould match thenfs_storage_nameof the entries for theservice_k8s_cluster.The path to PVC is mentioned under
{{ nfs_server_share_path }}.
Click here for more information.
- Doca-ofed installation
After running
discovery.ymland PXE-booting the nodes, DOCA-OFED is installed on nodes that have Mellanox InfiniBand cards. A static IP is assigned to the InfiniBand interface only if the interface is up. If the interface is down, the user must bring it up to enable IP assignment.
Next Step
To know how to deploy the iDRAC telemetry containers on the service cluster, click here.
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.