introduce topology into the runtimeClass API
This commit is contained in:
42
api/openapi-spec/swagger.json
generated
42
api/openapi-spec/swagger.json
generated
@@ -13280,6 +13280,10 @@
|
||||
"runtimeHandler": {
|
||||
"description": "RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable.",
|
||||
"type": "string"
|
||||
},
|
||||
"topology": {
|
||||
"$ref": "#/definitions/io.k8s.api.node.v1alpha1.Topology",
|
||||
"description": "Topology specifies the scheduling constrains that are necessary to assign pods to the right node"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -13287,6 +13291,23 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.node.v1alpha1.Topology": {
|
||||
"description": "Topology specifies the structure of scheduling constrains for the runtime class",
|
||||
"properties": {
|
||||
"nodeSelector": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector",
|
||||
"description": "nodeSelector selects the set of nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The nodeSelector is intersected (AND) with a pod's other node affinity or node selector requirements."
|
||||
},
|
||||
"tolerations": {
|
||||
"description": "tolerations adds tolerations to pods running with this RuntimeClass.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.Toleration"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.node.v1beta1.RuntimeClass": {
|
||||
"description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md",
|
||||
"properties": {
|
||||
@@ -13305,6 +13326,10 @@
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
|
||||
"description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
|
||||
},
|
||||
"topology": {
|
||||
"$ref": "#/definitions/io.k8s.api.node.v1beta1.Topology",
|
||||
"description": "Topology describes the set of nodes in the cluster that support this RuntimeClass. The rules are applied to the pod during scheduling time. If topology is nil, this RuntimeClass is assumed to be supported by all nodes. pods to the right node"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -13354,6 +13379,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"io.k8s.api.node.v1beta1.Topology": {
|
||||
"description": "Topology specifies the scheduling constraints for nodes supporting a RuntimeClass.",
|
||||
"properties": {
|
||||
"nodeSelector": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector",
|
||||
"description": "nodeSelector selects the set of nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The nodeSelector is intersected (AND) with a pod's other node affinity or node selector requirements. A nil nodeSelector selects all nodes."
|
||||
},
|
||||
"tolerations": {
|
||||
"description": "tolerations adds tolerations to pods running with this RuntimeClass. the tolerations are appended (excluding duplicates) to the pod's tolerations during admission.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.Toleration"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.policy.v1beta1.AllowedCSIDriver": {
|
||||
"description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user