Run Deployment in Multi-Cluster
Run a MultiKueue scheduled Deployment.
Before you begin
-
Check the MultiKueue installation guide on how to properly setup MultiKueue clusters.
-
Deployments receive live status updates through the status from the remote Pods created on the worker cluster.
Pod integration requirements
Since Kueue v0.15, you don’t need to explicitly enable
"pod"
integration to use the"deployment"
integration.For Kueue v0.14 and earlier,
"pod"
integration must be explicitly enabled.See Run Plain Pods for configuration details.
Feature state beta since Kueue v0.11.0
Note
In this current implementation, when Deployments are created in environments with multiple worker clusters, Pods are allocated to any worker.Example
Once the setup is complete you can test it by running the example below:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
kueue.x-k8s.io/queue-name: user-queue
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: registry.k8s.io/nginx-slim:0.27
ports:
- containerPort: 80
resources:
requests:
cpu: "100m"
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.