Pool targeting
Customer guide: the full Extend guide (setup, pool targeting, lifecycle, removal, troubleshooting, security) is the guide "Extend your cluster". That guide is the primary version of the targeting rules (its section 4).
Choose, per workload, whether it can run on a Multicloud pool (a virtual node in your cluster backed by cross-cloud capacity), stay on your own nodes only, or be eligible for either. Nothing lands on a pool unless you explicitly opt it in. Bursting is one use of a pool; the same contract serves any workload you want to run on pool capacity.
This is the how to use it guide. For the design rationale and the interplay with the underlying bridge (Liqo) contact Multicloud support.
TL;DR
Once Extend is installed, your cluster has one extra node per pool — the virtual node — representing that Multicloud pool. Each virtual node carries a taint and a label keyed by the pool's slug, so nothing lands on it by accident:
- To run a workload on a specific pool: add a toleration for
multicloud.io/pool=<slug>:NoScheduleand anodeSelector: multicloud.io/pool: <slug>. - To run a workload on any Multicloud pool: add a toleration with
operator: Existsformulticloud.io/pooland a requirednodeAffinitywithmulticloud.io/pool Exists. - To keep a workload local (the default): do nothing. No toleration → the scheduler can never place it on the virtual node, full stop.
- To let a workload use either (opportunistic use of the pool): add the toleration, skip the
nodeSelector, and add atopologySpreadConstraintso replicas spread across whatever's available.
The examples in this guide show the fields that matter. Copy them into your own manifests.
The pool slug
<slug> is the pool cluster's opaque, immutable, globally unique id: c followed by 12 hex
characters, for example c032878aa87d6. It is shown as the pool's slug. A pool that you
delete and recreate gets a new slug, so a manifest never silently follows a reused name onto
a different pool. Copy the slug from the pool listing and paste it into your manifests.
Quick start — run a workload on a specific pool
Prerequisite: your namespace must be offloaded (Liqo
NamespaceOffloadingpresent, strategyLocalAndRemoterecommended) — without it the pool is not a scheduling candidate and pool-targeted pods stay local with no hint why. The pool taint is part of the peering bundle. It is on the virtual node from the moment the node exists, so no admin step is needed before you offload namespaces or deploy workloads.
apiVersion: apps/v1
kind: Deployment
metadata:
name: batch-worker
namespace: my-team
spec:
replicas: 3
selector:
matchLabels: { app: batch-worker }
template:
metadata:
labels: { app: batch-worker }
spec:
tolerations:
- key: multicloud.io/pool
operator: Equal
value: c0123456789ab # replace with your pool's slug
effect: NoSchedule
nodeSelector:
multicloud.io/pool: c0123456789ab # same slug
containers:
- name: worker
image: my-registry/batch-worker:1.0
resources:
requests: { cpu: 500m, memory: 512Mi }
limits: { cpu: "1", memory: 1Gi }
Every replica of this Deployment lands on that pool. Nothing else changes — it's still a normal
Deployment, still visible in your kubectl and dashboards exactly like a local pod.
Quick start — run on any Multicloud pool
Use this when the workload does not care which pool serves it, or when you run several pools.
spec:
tolerations:
- key: multicloud.io/pool
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: multicloud.io/pool
operator: Exists
Quick start — pin a workload local (never on a pool)
apiVersion: apps/v1
kind: Deployment
metadata:
name: primary-db-proxy
namespace: my-team
spec:
replicas: 2
selector:
matchLabels: { app: primary-db-proxy }
template:
metadata:
labels: { app: primary-db-proxy }
spec:
# No toleration → can never be scheduled onto the virtual node.
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: multicloud.io/pool
operator: DoesNotExist
containers:
- name: proxy
image: my-registry/db-proxy:1.0
resources:
requests: { cpu: 250m, memory: 256Mi }
limits: { cpu: 500m, memory: 512Mi }
The nodeAffinity block is optional belt-and-suspenders — omitting the toleration is already
sufficient. It's here so "this workload must never leave the cluster" is visible in the manifest
itself, not just implied by an absent field.
Quick start — spread across (opportunistic use of the pool)
apiVersion: apps/v1
kind: Deployment
metadata:
name: report-renderer
namespace: my-team
spec:
replicas: 6
selector:
matchLabels: { app: report-renderer }
template:
metadata:
labels: { app: report-renderer }
spec:
tolerations:
- key: multicloud.io/pool
operator: Equal
value: c0123456789ab # replace with your pool's slug
effect: NoSchedule
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels: { app: report-renderer }
containers:
- name: renderer
image: my-registry/report-renderer:1.0
resources:
requests: { cpu: 250m, memory: 256Mi }
limits: { cpu: "1", memory: 1Gi }
No nodeSelector here — the toleration only permits the virtual node, it doesn't require it.
The scheduler spreads replicas across your local nodes and the pool based on fit, so this
workload opportunistically bursts onto the pool when local capacity is tight and comes back down
when it isn't.
How it works
- The virtual node carries two taints. One from the bridge itself (always present, not
yours to manage) and one Multicloud-owned taint,
multicloud.io/pool=<slug>:NoSchedule, added specifically so your workloads must explicitly opt in. Only the second one is yours to tolerate or not. - The virtual node carries one Multicloud-owned label,
multicloud.io/pool=<slug>, so anodeSelector/nodeAffinitycan target (or exclude) it without referencing any bridge-internal labels. There is no tier label. - Namespace-level settings don't override your workload's choice. Whatever offloading
default your namespace has, a pod without a matching
multicloud.io/pooltoleration can never land on the virtual node. Ask your platform admin before setting a namespace to force-remote — every pod in it then needs the toleration or it will never schedule.
Rules & gotchas
- The taint value is the pool slug, a string such as
c032878aa87d6. Withoperator: Equalthe tolerationvaluemust match it exactly; useoperator: Exists(novalue) to tolerate every pool. - A recreated pool has a new slug. Update the
valueandnodeSelectorin your manifests when you recreate a pool; the old slug no longer matches anything. nodeSelectoralone, with no toleration, does nothing — the pod would still be blocked by the taint and stayPending. You need both to force pool placement.- A toleration alone, with no
nodeSelector, means "eligible for either" — not "prefer the pool." If you want every replica on the pool, add thenodeSelector(or theExistsnodeAffinity) too. - Don't reference
liqo.io/typeorvirtual-node.liqo.io/*directly in your manifests. Those are the bridge implementation's own labels/taints — use themulticloud.io/*ones documented here so your manifests keep working if the bridge implementation changes. podOffloadingStrategy: Remoteon your namespace forces every pod there onto the pool via node affinity — if any of those pods lack themulticloud.io/pooltoleration they become permanently unschedulable. Don't set this unless you're certain every pod in the namespace carries the toleration.
Troubleshooting
| Symptom | Likely cause |
|---|---|
Workload stuck Pending, event mentions the virtual node's name and "untolerated taint" |
Missing, misspelled or wrong-slug multicloud.io/pool toleration. Check the slug against the pool listing. |
| Workload never lands on the pool even with the toleration | No nodeSelector/nodeAffinity targeting multicloud.io/pool, and local nodes currently have room — this is "eligible for either," not "force pool." Add the nodeSelector if you want to guarantee it. |
| Workload landed on the pool unexpectedly | Check whether it has a stray multicloud.io/pool toleration (e.g. copy-pasted from another manifest, or operator: Exists) — remove it to pin the workload local. |
| Manifests stopped matching after a pool was recreated | The recreated pool has a new slug. Replace the old slug in the toleration and nodeSelector. |
Whole namespace's pods stuck Pending after an admin change |
Someone likely set podOffloadingStrategy: Remote on the namespace without adding the toleration to every pod in it. |
NamespaceOffloading stays NoClusterSelected; liqo-controller-manager logs spec.clusterSelector.nodeSelectorTerms: Required value |
The object has no clusterSelector. Liqo v1.1.2 needs an explicit one. Use a NamespaceOffloading manifest with an explicit clusterSelector, or liqoctl offload namespace. |
Configuration reference (platform admins)
The virtual node's extra taint/label are set automatically. The peering bundle that Multicloud
generates (GET /api/v1/extend/pools/{name}/peerings/{id}) carries them
on the Liqo VirtualNode object, so kubectl apply -f multicloud-peering.yaml is the only
step (the bundle carries the mechanism):
| Setting | Value |
|---|---|
| Taint | multicloud.io/pool=<pool-slug>:NoSchedule |
| Label | multicloud.io/pool=<pool-slug> |
These are additive to whatever the bridge (Liqo) sets on its own — never edit or remove the
bridge's own liqo.io/type label or virtual-node.liqo.io/not-allowed taint.