k8s patch api返回error 415


PATCH http://192.168.1.21:8080/api/v ... oller
{
"spec":{
"replicas": 1
}
}

返回:

{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server responded with the status code 415 but did not return more information",
"details": {},
"code": 415
}

通过k8s的api scale pods,但是返回错误码,木有弄懂怎么回事。google了下,github上有个issue

(https://github.com/kubernetes/ ... s/8489)

好像之前是个bug,但是在1.0版本修复了。我用的k8s是v1.1.0-alpha.0,但是还是有这个问题

大家有遇到过吗?是怎么解决的?谢谢!
已邀请:

Tim_p - 不想做摄影师的厨师不是好程序员

赞同来自:


设置 Content-Type: application/json-patch+json

要回复问题请先登录注册