在多集群环境中运行 Deployment
运行 MultiKueue 调度的 Deployment。
开始之前
-
请查阅 MultiKueue 安装指南了解如何正确设置 MultiKueue 集群。
-
按照运行普通 Pod的步骤,了解如何启用和配置 Pod 集成,这对于启用 Deployment 集成是必需的。
Deployment 会实时接收在工作集群创建的远程 Pod 的状态,并更新。
Feature state beta since Kueue v0.11.0
注意
在当前实现中,当在有多个工作集群的环境中创建 Deployment 时,Pod 会被分配到任意工作集群。示例
完成设置后,你可以通过运行以下示例进行测试:
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"
反馈
这个页面有帮助吗?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.