Kubernetes API分类汇总

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}

1.7. ResourceQuota

1.8. Secret

1.9. ServiceAccount

1.10. PersistentVolume

1.11. Event

1.12. LimitRange

你可能感兴趣的:(Kubernetes,Kubernetes系列学习)