- Related issues: #2316 [BUG] Guest cluster nodes distributed across failure domain
- Related issues: #2384 [backport v1.0.3] Guest cluster nodes distributed across failure domains
Category:
- Rancher integration
Verification Steps
RKE2 Verification Steps
- Open Harvester Host page then edit host config
- Add the following key value in the labels page:
- topology.kubernetes.io/zone: zone_bp
- topology.kubernetes.io/region: region_bp
- Open the RKE2 provisioning page
- Expand the show advanced
- Click add Node selector in
Node scheduling
- Use default
Required
priority - Click Add Rule
- Provide the following key/value pairs
topology.kubernetes.io/zone: zone_bp
topology.kubernetes.io/region: region_bp
- Provide the following user data
password: 123456 chpasswd: { expire: False } ssh_pwauth: True
- Create the RKE2 guest cluster
- Go to Harvester Virtual Machine page
- Edit yaml of the RKE2 guest cluster
Check the node affinity label have written into the yaml
- Check the guest cluster VM have no error message
- Check can provision RKE2 cluster without error
- Provide mismatch or not exists node scheduling or pod scheduling selector key/value pair in step 13 or 18
- Provision another RKE2 cluster
- Check VM should have error icon with message and automatically suspend the RKE2 provisioning
RKE1 Verification Steps
- Follow the steps 1 ~ 7 of the RKE2 verification section
- Go to Rancher Cluster Management page, add the RKE1 node template
- Click add Node selector in
Node scheduling
- Use default
Required
priority - Click Add Rule
- Provide the following key/value pairs
topology.kubernetes.io/zone: zone_bp
topology.kubernetes.io/region: region_bp
- Create the RKE1 guest cluster
- Go to Harvester Virtual Machine page
- Edit yaml of the RKE1 guest cluster
- Check the node label have written into the yaml
- Check the guest cluster VM have no error message
- Check can provision RKE1 cluster without error
- Provide mismatch or not exists node scheduling or pod scheduling selector key/value pair in step 6 and 10
- Provision another RKE1 cluster
- Check VM should have error icon with message and automatically suspend the RKE1 provisioning
Expected Results
- Can deploy guest RKE1 cluster vm to specific Harvester node matching the
node scheduling
andpod scheduling
selector - Can deploy guest RKE2 cluster vm to specific Harvester node matching the
node scheduling
andpod scheduling
selector - Can’t deploy guest RKE1 cluster vm to specific Harvester node if any of the
node scheduling
andpod scheduling
selector not found on the Harvester node - Can’t deploy guest RKE2 cluster vm to specific Harvester node if any of the
node scheduling
andpod scheduling
selector not found on the Harvester node