【发布时间】:2020-03-24 04:51:44
【问题描述】:
是否可以在 Kubelet 配置中指定扩展资源,或者是否需要使用守护程序 pod 之类的东西来实现?
此上下文中的扩展资源指的是:https://kubernetes.io/docs/tasks/administer-cluster/extended-resource-node/。此页面指定通告这些资源的方式是向节点/status 端点发送补丁,如下所示:
curl --header "Content-Type: application/json-patch+json" \
--request PATCH \
--data '[{"op": "add", "path": "/status/capacity/example.com~1dongle", "value": "4"}]' \
http://localhost:8001/api/v1/nodes/<your-node-name>/status
【问题讨论】:
标签: kubernetes devops kubelet