Commit 0759230
committed
feat: Add RKE2 as alternative Kubernetes distribution for service cluster
Add support for deploying RKE2 (Rancher Kubernetes Engine 2) as an alternative
to vanilla Kubernetes (kubeadm) for the service cluster. Users can choose the
distribution via the new k8s_distro field in omnia_config.yml.
Configuration changes:
- Add k8s_distro field to service_k8s_cluster in omnia_config.yml (default: kubeadm)
- Update omnia_config.json schema to validate k8s_distro enum (kubeadm/rke2)
- Expand k8s_cni enum to include canal, cilium (RKE2-supported CNIs)
Pipeline integration:
- discovery.yml: Enable service_k8s tag when service_rke2 is in software_config.json
- include_software_config.yml: Detect service_rke2 and set service_rke2_support fact
- validate_software_config_json.yml: Handle service_rke2 arch and version detection
- common_validation.py: Accept service_rke2 for cluster validation
- image_package_collector.py: Dynamically select service_rke2.json for image builds
- k8s_config/main.yml: Branch NFS setup based on k8s_distro
- configure_cloud_init_group.yml: Select RKE2-specific templates when k8s_distro=rke2
New files:
- 3 RKE2 cloud-init templates (first server, additional server, agent)
- create_rke2_config_nfs.yml for RKE2-specific NFS directory setup
- service_rke2.json package definitions for RHEL 10.0 x86_64
Key differences from kubeadm path:
- RKE2 uses built-in containerd (no CRI-O)
- RKE2 manages CNI lifecycle (calico/canal/cilium/flannel)
- Token-based cluster join instead of kubeadm certificates
- kube-vip deployed as RKE2 static pod manifest
- RKE2 registries.yaml for Pulp mirror integration
- Port 9345 for RKE2 supervisor API
Existing kubeadm deployment is completely unaffected when k8s_distro=kubeadm (default).
Signed-off-by: John Lockman <j.lockman@dell.com>1 parent 483ce3a commit 0759230
17 files changed
Lines changed: 1778 additions & 13 deletions
File tree
- common/library
- module_utils/input_validation
- schema
- validation_flows
- modules
- discovery
- roles
- configure_ochami
- tasks
- templates/cloud_init/rke2
- vars
- discovery_validations/tasks
- k8s_config
- tasks
- vars
- input
- config/x86_64/rhel/10.0
- local_repo/roles/validation/tasks
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 | | |
110 | | - | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | | - | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
233 | 240 | | |
234 | 241 | | |
235 | 242 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
32 | | - | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
0 commit comments