Deploy Service Kubernetes¶
Overview¶
Orchestrator prepares service Kubernetes nodes whose functional-group names
start with service_kube_. It registers those nodes and groups in OpenCHAMI,
creates their boot and cloud-init data, mounts the selected storage on the OIM,
stages Kubernetes configuration and offline content on that storage, and
configures the Kubernetes software and mounts selected by the Kubernetes
bolt-on list.
The default Kubernetes bolt-ons are mount_config, k8s_config, and
telemetry. The current Kubernetes provisioning playbook implements
mount_config and k8s_config; deploy Telemetry through the Telemetry domain
after Kubernetes is available. An optional orchestrator.bolt_ons.kubernetes
override in omnia_config.yml can include openldap. That role runs only when
the selected catalog also enables OpenLDAP support.
The source provides x86_64 templates for the first control-plane node,
additional control-plane nodes, and worker nodes. For RHEL 10.x, Kubernetes
PXE mapping entries must use catalog-qualified names that include the minor
version selected by the catalog:
service_kube_control_plane_rhel_10_<minor>_x86_64 and
service_kube_node_rhel_10_<minor>_x86_64. For example, a catalog that selects
RHEL 10.2 uses _rhel_10_2_ in both names. The version must be the same for
every Kubernetes control-plane and worker node. Orchestrator promotes the
first mapped control-plane occurrence to the corresponding internal _first
group.
Prerequisites¶
- Complete Repository Manager and Image Build Manager with Kubernetes content and an
image for each
service_kube_functional group. - Add the Kubernetes nodes to the PXE mapping with lowercase hostnames, admin
network data, and BMC data for physical nodes. Retain the
SERVICE_TAGcolumn; its value may be empty, but every nonempty value must be unique. - Configure the OIM admin network and any additional node subnets in
network_spec.yml. The Kubernetes role derives the node-network CIDRs from the mapped control-plane and worker admin IPs. - Provide an NFS mount whose
namematchesnfs_storage_nameinomnia_config.yml. The OIM must be able to mount it and create the Kubernetes configuration directories. - Configure exactly one entry in
high_availability_config.yml. Itscluster_namemust match the single Kubernetes cluster selected withdeployment: trueinomnia_config.yml. - To deploy PowerScale CSI, set
enable_powerscale_csi: trueon the deployedservice_k8s_clusterand provide its secret and values file paths.
K8s storage architecture¶
The mount selected by nfs_storage_name is used to stage the Kubernetes
configuration, SSH key, package layout, Pulp certificate, and offline Calico,
MetalLB, Helm, and NFS provisioner content. The role also creates per-node
directories for Kubernetes, kubelet, pod logs, and, for control-plane nodes,
etcd data.
Procedure¶
-
Assign nodes to the supported Kubernetes functional groups in
pxe_mapping_file.csv:pxe_mapping_file.csv — functional-group examplesservice_kube_control_plane_rhel_10_<minor>_x86_64 service_kube_node_rhel_10_<minor>_x86_64Do not add the internal
_firstmarker to the source mapping. The source currently has no aarch64 Kubernetes metadata-service templates.Use one Kubernetes minor version
Replace
<minor>with the RHEL 10.x minor version from the selected catalog and use that version for every Kubernetes row inpxe_mapping_file.csv. For the currently documented catalogs,<minor>is0for RHEL 10.0 or2for RHEL 10.2. For example, when the catalog selects RHEL 10.2, use_rhel_10_2_functional groups throughout the Kubernetes cluster. Do not combine different RHEL minor versions in one Kubernetes cluster. -
Configure the Kubernetes cluster in
omnia_config.yml. Mark exactly one entry withdeployment: true. Input validation rejects configurations with no selected cluster or with multiple entries markedtrue.omnia_config.ymlservice_k8s_cluster: - cluster_name: service_cluster deployment: true enable_powerscale_csi: false etcd_on_local_disk: false k8s_cni: "calico" pod_external_ip_range: "172.16.107.170-172.16.107.200" k8s_service_addresses: "10.233.0.0/18" k8s_pod_network_cidr: "10.233.64.0/18" nfs_storage_name: "nfs_k8s" k8s_crio_storage_size: "20G" csi_powerscale_driver_secret_file_path: "" csi_powerscale_driver_values_file_path: ""
Set k8s_cni to calico. The current provisioning path stages and applies
Calico and does not select a Flannel manifest from this value. Supply
canonical service and pod CIDRs and an ordered external address range. The
three ranges must not overlap each other. Service and pod CIDRs must not
overlap the primary or additional admin networks or the InfiniBand network.
The external pool must exclude OIM addresses, mapped ADMIN_IP, BMC_IP,
and IB_IP values, and every configured DHCP range.
-
Configure the matching HA entry:
high_availability_config.ymlservice_k8s_cluster_ha: - cluster_name: service_cluster enable_k8s_ha: true virtual_ip_address: "<unused-admin-network-ip>" -
Configure the NFS mount. Replace the source placeholder with a reachable export.
storage_config.ymlmounts: - name: "nfs_k8s" source: "<nfs-server>:<export>" mount_point: "/opt/omnia/k8s_mount" fs_type: "nfs" mnt_opts: "nosuid,rw,sync,hard,intr" mount_on_oim: true functional_group_prefix: ["service_kube"] -
Validate, deploy the OIM services, and provision. The
provisiontag also processes any Slurm, OS-only, login, or custom groups in the same mapping.Run on: OIMcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run orchestrator --tags validate ./omnia.sh --run orchestrator --tags precheck ./omnia.sh --run orchestrator --tags prepare ./omnia.sh --run orchestrator --tags provisionRun on: OIMsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks ansible-playbook orchestrator.yml --tags validate ansible-playbook orchestrator.yml --tags precheck ansible-playbook orchestrator.yml --tags prepare ansible-playbook orchestrator.yml --tags provision -
For physical servers, start the PXE and node-registration flow:
Run on: OIMcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run orchestrator --tags pxebootRun on: OIMsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks ansible-playbook orchestrator.yml --tags pxeboot
Verification¶
Confirm the Orchestrator view first:
source /etc/profile.d/omnia-env.sh
orchestrator_path="${OMNIA_DATA_PATH}/orchestrator"
cat "$orchestrator_path/output/$OMNIA_PROJECT_NAME/provisioning_report.yml"
cat "$orchestrator_path/output/$OMNIA_PROJECT_NAME/orchestrator_status.yml"
If the pxeboot phase in step 6 ran, inspect its per-node report separately:
cat "$orchestrator_path/output/$OMNIA_PROJECT_NAME/pxeboot_status.yml"
After cloud-init completes, use the commands embedded in the source templates on the first control-plane node:
kubectl get nodes -o wide
kubectl get pods --all-namespaces -o wide
All mapped nodes should appear in the first command. Workloads in the second
command should reach Running or Completed.
Next steps¶
- Use Add Nodes for additional control-plane or worker entries that have matching source templates and Image Build Manager artifacts.
- Use Configure HA and Configure Storage for the associated project inputs.
- To deploy PowerScale CSI, enable it in
omnia_config.ymland configure both required files before rerunning provisioning. - After the service cluster is ready, configure and run the Telemetry domain separately when telemetry is required.
Troubleshooting¶
The NFS configuration directory cannot be created
Confirm that the configured server exports the selected path with permissions
that allow the OIM to write it. The role's source guidance uses an export with
rw,sync,no_root_squash,no_subtree_check; reload exports and restart the NFS
server after correcting it.
Offline Kubernetes variables are missing
Confirm that repo_status.yml provides offline_tarball_path and
offline_manifest_path, its Pulp certificate exists, and the catalog contains
the Kubernetes package definitions selected by the role. Run Repository Manager
again before retrying Orchestrator.
A Kubernetes node is not ready
Inspect the commands used in the generated cloud-init workflow:
systemctl status kubelet
Then inspect the cluster from the first control-plane node:
kubectl get nodes -o wide
kubectl get pods --all-namespaces -o wide
Also check the node's cloud-init output and the corresponding entry in
orchestrator_status.yml before rerunning the relevant phase.