【发布时间】:2016-01-17 06:21:48
【问题描述】:
kubernetes 版本:1.02
REST API
删除 /api/v1/namespaces/default/replicationcontrollers/test
身体
{
"apiVersion": "v1",
"kind": "ReplicationController",
"gracePeriodSeconds": 0}
}
失败
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "converting to : type names don't match (ReplicationController, DeleteOptions), and no conversion 'func (v1.ReplicationController, api.DeleteOptions) error' registered.",
"code": 500
}
如果设置body为空,删除成功,但pod存在。
kubectl 获取rc,rc被删除
kubectl 获取 pod,pod 已经存在
为什么?
如何通过 api delete 方法删除所有 pod 的 rc?
【问题讨论】:
标签: kubernetes