Run Deployment in Multi-Cluster

Run a MultiKueue scheduled Deployment.

Before you begin

  1. Check the MultiKueue installation guide on how to properly setup MultiKueue clusters.

  2. Follow steps in Run Plain Pods to learn how to enable and configure the pod integration which is required for enabling the deployment integration.

Deployments receive live status updates through the status from the remote Pods created on the worker cluster.

Feature state beta since Kueue v0.11.0

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"