向节点添加标签:
$ kubectl label nodes 10.xx.xx.xx key1=val1
Run Code Online (Sandbox Code Playgroud)
如果我想label(key1=val1)在节点(10.xx.xx.xx)上删除,我如何通过kubectl命令和API删除?
Kubernetes verison:1.02
PATCH/api/v1/namespaces/default/replicationcontrollers/test
body
{"spec":
{"replicas": 3}
}
response
'{
"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
}'
Run Code Online (Sandbox Code Playgroud)
这是API的错误吗?
kubernetes ×2