Skip to content

Commit

Permalink
kueue default config defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ighosh98 committed Dec 10, 2024
1 parent 1adc1bd commit 39af072
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions examples/kueue-config-files/kueue-default-configuration.yaml.tftpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: kueue.x-k8s.io/v1alpha1
kind: Topology
metadata:
name: "gke-default"
spec:
levels:
- nodeLabel: "cloud.google.com/gce-topology-block"
- nodeLabel: "cloud.google.com/gce-topology-subblock"
- nodeLabel: "cloud.google.com/gce-topology-host"
- nodeLabel: "kubernetes.io/hostname"
---
kind: ResourceFlavor
apiVersion: kueue.x-k8s.io/v1beta1
metadata:
name: "tas-flavor"
spec:
nodeLabels:
cloud.google.com/gke-nodepool: ${nodepool_name}
topologyName: "gke-default"
---
apiVersion: kueue.x-k8s.io/v1beta1
kind: ClusterQueue
metadata:
name: "tas-cluster-queue"
spec:
namespaceSelector: {} # match all.
resourceGroups:
- coveredResources: ["nvidia.com/gpu"]
flavors:
- name: "tas-flavor"
resources:
- name: "nvidia.com/gpu"
nominalQuota: ${num_chips}
---
apiVersion: kueue.x-k8s.io/v1beta1
kind: LocalQueue
metadata:
namespace: "default"
name: "tas-user-queue"
spec:
clusterQueue: "tas-cluster-queue"

0 comments on commit 39af072

Please sign in to comment.