1. 资源对象
1.1. Namespace
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind Namespace | GET | /api/v1/namespaces |
read the specified Namespace | GET | /api/v1/namespaces/{name} | |
增 | create a Namespace | POST | /api/v1/namespaces |
删 | delete a Namespace | DELETE | /api/v1/namespaces/{name} |
改 | replace the specified Namespace | PUT | /api/v1/namespaces/{name} |
partially update the specified Namespace | PATCH | /api/v1/namespaces/{name} | |
replace finalize of the specified Namespace | PUT | /api/v1/namespaces/{name}/finalize | |
replace status of the specified Namespace | PUT | /api/v1/namespaces/{name}/status |
1.2. Endpoints
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind Endpoints | GET | /api/v1/endpoints |
list or watch objects of kind Endpoints | GET | /api/v1/namespaces/{namespace}/endpoints | |
read the specified Endpoints | GET | /api/v1/namespaces/{namespace}/endpoints/{name} | |
增 | create a Endpoints | POST | /api/v1/namespaces/{namespace}/endpoints |
删 | delete a Endpoints | DELETE | /api/v1/namespaces/{namespace}/endpoints/{name} |
改 | replace the specified Endpoints | PUT | /api/v1/namespaces/{namespace}/endpoints/{name} |
partially update the specified Endpoints | PATCH | /api/v1/namespaces/{namespace}/endpoints/{name} |
1.3. Pod
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind Pod | GET | /api/v1/namespaces/{namespace}/pods |
read the specified Pod | GET | /api/v1/namespaces/{namespace}/pods/{name} | |
增 | create a Pod | POST | /api/v1/namespaces/{namespace}/pods |
删 | delete a Pod | DELETE | /api/v1/namespaces/{namespace}/pods/{name} |
改 | replace the specified Pod | PUT | /api/v1/namespaces/{namespace}/pods/{name} |
partially update the specified Pod | PATCH | /api/v1/namespaces/{namespace}/pods/{name} |
Pod操作:
分类 | 说明 | 方法 | API |
---|---|---|---|
connect GET requests to attach of Pod | GET | /api/v1/namespaces/{namespace}/pods/{name}/attach | |
connect POST requests to attach of Pod | POST | /api/v1/namespaces/{namespace}/pods/{name}/attach | |
create binding of a Binding | POST | /api/v1/namespaces/{namespace}/pods/{name}/binding | |
connect GET requests to exec of Pod | GET | /api/v1/namespaces/{namespace}/pods/{name}/exec | |
connect POST requests to exec of Pod | POST | /api/v1/namespaces/{namespace}/pods/{name}/exec | |
read log of the specified Pod | GET | /api/v1/namespaces/{namespace}/pods/{name}/log | |
connect GET requests to portforward of Pod | GET | /api/v1/namespaces/{namespace}/pods/{name}/portforward | |
connect POST requests to portforward of Pod | POST | /api/v1/namespaces/{namespace}/pods/{name}/portforward |
1.4. ReplicationController
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind ReplicationController | GET | /api/v1/namespaces/{namespace}/replicationcontrollers |
read the specified ReplicationController | GET | /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | |
增 | create a ReplicationController | POST | /api/v1/namespaces/{namespace}/replicationcontrollers |
删 | delete a ReplicationController | DELETE | /api/v1/namespaces/{namespace}/replicationcontrollers/{name} |
改 | replace the specified ReplicationController | PUT | /api/v1/namespaces/{namespace}/replicationcontrollers/{name} |
partially update the specified ReplicationController | PATCH | /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | |
replace status of the specified ReplicationController | PUT | /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status |
1.5. Node
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind Node | GET | /api/v1/nodes |
read the specified Node | GET | /api/v1/nodes/{name} | |
增 | create a Node | POST | /api/v1/nodes |
删 | delete a Node | DELETE | /api/v1/nodes/{name} |
改 | replace the specified Node | PUT | /api/v1/nodes/{name} |
partially update the specified Node | PATCH | /api/v1/nodes/{name} | |
replace status of the specified Node | PUT | /api/v1/nodes/{name}/status |
1.6. Service
分类 | 说明 | 方法 | API |
---|---|---|---|
查 | list or watch objects of kind Service | GET | /api/v1/namespaces/{namespace}/services |
read the specified Service | GET | /api/v1/namespaces/{namespace}/services/{name} | |
增 | create a Service | POST | /api/v1/namespaces/{namespace}/services |
删 | delete a Service | DELETE | /api/v1/namespaces/{namespace}/services/{name} |
改 | replace the specified Service | PUT | /api/v1/namespaces/{namespace}/services/{name} |
partially update the specified Service | PATCH | /api/v1/namespaces/{namespace}/services/{name} |