-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Extend PodResources API for Dynamic Resource Allocation #39978
Extend PodResources API for Dynamic Resource Allocation #39978
Conversation
2fc4899
to
d3fadde
Compare
repeated ClaimResource claim_resources = 4; | ||
} | ||
|
||
// ClaimResource contains per plugin resource information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// ClaimResource contains per plugin resource information | |
// ClaimResource contains per-plugin resource information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
The `Get` endpoint provides information on resources of a running pod. It exposes similar information as | ||
describe in the `List` endpoint. The `Get` endpoint requires `pod_name` and `pod_namesapce` of the running | ||
pod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `Get` endpoint provides information on resources of a running pod. It exposes similar information as | |
describe in the `List` endpoint. The `Get` endpoint requires `pod_name` and `pod_namesapce` of the running | |
pod. | |
The `Get` endpoint provides information on resources of a running Pod. It exposes information | |
similar to those described in the `List` endpoint. The `Get` endpoint requires `pod_name` and | |
`pod_namespace` of the running Pod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, the design to use _
in the field name is a bad decision against the convention to use camelCase names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this pod_namespace and pod_name taken from the proto file syntax which is underscore. For golang it will be camelCase according to golang conventions. I updated in the commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
``` | ||
|
||
To enable this feature `kubelet` must be started with the following flag: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To enable this feature `kubelet` must be started with the following flag: | |
To enable this feature, you must start your kubelet services with the following flag: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
The `Get` enpoint can provide information on dynamic resources | ||
of a running pod allocated by the dynamic resource allocation API. To enable this feature `kubelet` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `Get` enpoint can provide information on dynamic resources | |
of a running pod allocated by the dynamic resource allocation API. To enable this feature `kubelet` | |
The `Get` endpoint can provide Pod information related to dynamic resources | |
allocated by the dynamic resource allocation API. To enable this feature, you must |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
The `Get` enpoint can provide information on dynamic resources | ||
of a running pod allocated by the dynamic resource allocation API. To enable this feature `kubelet` | ||
must be started with the following flags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must be started with the following flags: | |
ensure your kubelet services are started with the following flags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -162,6 +162,12 @@ gets scheduled onto one node and then cannot run there, which is bad because | |||
such a pending Pod also blocks all other resources like RAM or CPU that were | |||
set aside for it. | |||
|
|||
## Monitoring resources | |||
|
|||
The kubelet provides a gRPC service to enable discovery of Dynamic Resources of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The kubelet provides a gRPC service to enable discovery of Dynamic Resources of | |
The kubelet provides a gRPC service to enable discovery of dynamic resources of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- `KubeletPodResourcesGet`: Enable the kubelet's pod resources gRPC endpoint | ||
`Get` functionality. This API augments the [resource allocation reporting](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#monitoring-device-plugin-resources). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `KubeletPodResourcesGet`: Enable the kubelet's pod resources gRPC endpoint | |
`Get` functionality. This API augments the [resource allocation reporting](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#monitoring-device-plugin-resources). | |
- `KubeletPodResourcesGet`: Enable the `Get` gRPC endpoint on kubelet's for Pod resources. | |
This API augments the [resource allocation reporting](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#monitoring-device-plugin-resources). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
d3fadde
to
7671435
Compare
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
Signed-off-by: Moshe Levi <moshele@nvidia.com>
7671435
to
eaf9199
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mickeyboxell The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: 9e5b21034cb7ee674a50780647aa7c537404a9a0
|
Placeholder for the KEP-3695: extend pod resource API to for DRA
kubernetes/enhancements#3738