Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-place Pod Vertical Scaling feature #102884

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions api/openapi-spec/v3/api__v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,19 @@
],
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down Expand Up @@ -1292,6 +1305,26 @@
],
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
],
"type": "object"
},
"io.k8s.api.core.v1.ContainerState": {
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
Expand Down Expand Up @@ -1437,6 +1470,26 @@
"description": "Specifies whether the container has passed its readiness probe.",
"type": "boolean"
},
"resources": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ResourceRequirements"
}
],
"description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized."
},
"resourcesAllocated": {
"additionalProperties": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.api.resource.Quantity"
}
],
"default": {}
},
"description": "ResourcesAllocated represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.",
"type": "object"
},
"restartCount": {
"default": 0,
"description": "The number of times the container has been restarted.",
Expand Down Expand Up @@ -1954,6 +2007,19 @@
],
"description": "Probes are not allowed for ephemeral containers."
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down Expand Up @@ -5405,6 +5471,10 @@
"description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'",
"type": "string"
},
"resize": {
"description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"",
"type": "string"
},
"startTime": {
"allOf": [
{
Expand Down
46 changes: 46 additions & 0 deletions api/openapi-spec/v3/apis__apps__v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,19 @@
],
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down Expand Up @@ -1896,6 +1909,26 @@
],
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
],
"type": "object"
},
"io.k8s.api.core.v1.DownwardAPIProjection": {
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
"properties": {
Expand Down Expand Up @@ -2181,6 +2214,19 @@
],
"description": "Probes are not allowed for ephemeral containers."
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down
46 changes: 46 additions & 0 deletions api/openapi-spec/v3/apis__batch__v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,19 @@
],
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down Expand Up @@ -1187,6 +1200,26 @@
],
"type": "object"
},
"io.k8s.api.core.v1.ContainerResizePolicy": {
"description": "ContainerResizePolicy represents resource resize policy for a single container.",
"properties": {
"policy": {
"default": "",
"description": "Resource resize policy applicable to the specified resource name. If not specified, it defaults to RestartNotRequired.",
"type": "string"
},
"resourceName": {
"default": "",
"description": "Name of the resource type to which this resource resize policy applies. Supported values: cpu, memory.",
"type": "string"
}
},
"required": [
"resourceName",
"policy"
],
"type": "object"
},
"io.k8s.api.core.v1.DownwardAPIProjection": {
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
"properties": {
Expand Down Expand Up @@ -1472,6 +1505,19 @@
],
"description": "Probes are not allowed for ephemeral containers."
},
"resizePolicy": {
"description": "Resources resize policy for the container.",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/io.k8s.api.core.v1.ContainerResizePolicy"
}
],
"default": {}
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"resources": {
"allOf": [
{
Expand Down