Run StatefulSet in Multi-Cluster
Run a MultiKueue scheduled StatefulSet.
Before you begin
Check the MultiKueue installation guide on how to properly setup MultiKueue clusters.
Pod integration requirements
Since Kueue v0.15, you don’t need to explicitly enable "pod" integration to use the "statefulset" integration.
For Kueue v0.14 and earlier, "pod" integration must be explicitly enabled.
See Run Plain Pods for configuration details.
Run StatefulSet example
Once the setup is complete you can test it by running the example below:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: nginx-statefulset
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"
serviceName: "nginx"
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.