kueuectl create clusterqueue
Synopsis
Creates a ClusterQueue with the given name.
kueuectl create clusterqueue NAME [--cohort COHORT_NAME] [--queuing-strategy QUEUEING_STRATEGY] [--namespace-selector KEY=VALUE] [--reclaim-within-cohort PREEMPTION_POLICY] [--preemption-within-cluster-queue PREEMPTION_POLICY] [--nominal-quota RESOURCE_FLAVOR:RESOURCE=VALUE] [--borrowing-limit RESOURCE_FLAVOR:RESOURCE=VALUE] [--lending-limit RESOURCE_FLAVOR:RESOURCE=VALUE] [--dry-run STRATEGY]
Examples
# Create a ClusterQueue
kueuectl create clusterqueue my-cluster-queue
# Create a ClusterQueue with cohort, namespace selector and other details
kueuectl create clusterqueue my-cluster-queue \
--cohort cohortname \
--queuing-strategy StrictFIFO \
--namespace-selector fooX=barX,fooY=barY \
--reclaim-within-cohort Any \
--preemption-within-cluster-queue LowerPriority
# Create a ClusterQueue with nominal quota and one resource flavor named alpha
kueuectl create clusterqueue my-cluster-queue --nominal-quota "alpha:cpu=9;memory=36Gi"
# Create a ClusterQueue with multiple resource flavors named alpha and beta
kueuectl create clusterqueue my-cluster-queue \
--cohort cohortname \
--nominal-quota "alpha:cpu=9;memory=36Gi;nvidia.com/gpu=10,beta:cpu=18;memory=72Gi;nvidia.com/gpu=20" \
--borrowing-limit "alpha:cpu=1;memory=1Gi;nvidia.com/gpu=1,beta:cpu=2;memory=2Gi;nvidia.com/gpu=2" \
--lending-limit "alpha:cpu=1;memory=1Gi;nvidia.com/gpu=1,beta:cpu=2;memory=2Gi;nvidia.com/gpu=2"
Options
| --allow-missing-template-keys Default: true | |
|
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. |
|
| --borrowing-limit strings | |
|
The maximum amount of quota for the [flavor, resource] combination that this ClusterQueue is allowed to borrow from the unused quota of other ClusterQueues in the same cohort. |
|
| --cohort string | |
|
The cohort that this ClusterQueue belongs to. |
|
| -h, --help | |
|
help for clusterqueue |
|
| --lending-limit strings | |
|
The maximum amount of unused quota for the [flavor, resource] combination that this ClusterQueue can lend to other ClusterQueues in the same cohort. |
|
| --namespace-selector <comma-separated 'key=value' pairs> Default: [] | |
|
Defines which namespaces are allowed to submit workloads to this clusterQueue. |
|
| --nominal-quota strings | |
|
The quantity of this resource that is available for Workloads admitted by this ClusterQueue at a point in time. |
|
| -o, --output string | |
|
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). |
|
| --preemption-within-cluster-queue string | |
|
Determines whether a pending Workload that doesn't fit within the nominal quota for its ClusterQueue, can preempt active Workloads in the ClusterQueue. |
|
| --queuing-strategy string | |
|
The queueing strategy of the workloads across the queues in this ClusterQueue. |
|
| --reclaim-within-cohort string | |
|
Determines whether a pending Workload can preempt Workloads from other ClusterQueues in the cohort that are using more than their nominal quota. |
|
| --show-managed-fields | |
|
If true, keep the managedFields when printing objects in JSON or YAML format. |
|
| --template string | |
|
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. |
|
Options inherited from parent commands
| --as string | |
|
Username to impersonate for the operation. User could be a regular user or a service account in a namespace. |
|
| --as-group strings | |
|
Group to impersonate for the operation, this flag can be repeated to specify multiple groups. |
|
| --as-uid string | |
|
UID to impersonate for the operation. |
|
| --cache-dir string Default: "$HOME/.kube/cache" | |
|
Default cache directory |
|
| --certificate-authority string | |
|
Path to a cert file for the certificate authority |
|
| --client-certificate string | |
|
Path to a client certificate file for TLS |
|
| --client-key string | |
|
Path to a client key file for TLS |
|
| --cluster string | |
|
The name of the kubeconfig cluster to use |
|
| --context string | |
|
The name of the kubeconfig context to use |
|
| --disable-compression | |
|
If true, opt-out of response compression for all requests to the server |
|
| --dry-run string Default: "none" | |
|
Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. |
|
| --insecure-skip-tls-verify | |
|
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure |
|
| --kubeconfig string | |
|
Path to the kubeconfig file to use for CLI requests. |
|
| -n, --namespace string | |
|
If present, the namespace scope for this CLI request |
|
| --request-timeout string Default: "0" | |
|
The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. |
|
| -s, --server string | |
|
The address and port of the Kubernetes API server |
|
| --tls-server-name string | |
|
Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used |
|
| --token string | |
|
Bearer token for authentication to the API server |
|
| --user string | |
|
The name of the kubeconfig user to use |
|
See Also
- kueuectl create - Create a resource
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.