Kubernetes API分类汇总

1. 资源对象

1.1. Namespace

分类说明方法API
list or watch objects of kind NamespaceGET/api/v1/namespaces
read the specified NamespaceGET/api/v1/namespaces/{name}
create a NamespacePOST/api/v1/namespaces
delete a NamespaceDELETE/api/v1/namespaces/{name}
replace the specified NamespacePUT/api/v1/namespaces/{name}
partially update the specified NamespacePATCH/api/v1/namespaces/{name}
replace finalize of the specified NamespacePUT/api/v1/namespaces/{name}/finalize
replace status of the specified NamespacePUT/api/v1/namespaces/{name}/status

1.2. Endpoints

分类说明方法API
list or watch objects of kind EndpointsGET/api/v1/endpoints
list or watch objects of kind EndpointsGET/api/v1/namespaces/{namespace}/endpoints
read the specified EndpointsGET/api/v1/namespaces/{namespace}/endpoints/{name}
create a EndpointsPOST/api/v1/namespaces/{namespace}/endpoints
delete a EndpointsDELETE/api/v1/namespaces/{namespace}/endpoints/{name}
replace the specified EndpointsPUT/api/v1/namespaces/{namespace}/endpoints/{name}
partially update the specified EndpointsPATCH/api/v1/namespaces/{namespace}/endpoints/{name}

1.3. Pod

分类说明方法API
list or watch objects of kind PodGET/api/v1/namespaces/{namespace}/pods
read the specified PodGET/api/v1/namespaces/{namespace}/pods/{name}
create a PodPOST/api/v1/namespaces/{namespace}/pods
delete a PodDELETE/api/v1/namespaces/{namespace}/pods/{name}
replace the specified PodPUT/api/v1/namespaces/{namespace}/pods/{name}
partially update the specified PodPATCH/api/v1/namespaces/{namespace}/pods/{name}

Pod操作:

分类说明方法API
connect GET requests to attach of PodGET/api/v1/namespaces/{namespace}/pods/{name}/attach
connect POST requests to attach of PodPOST/api/v1/namespaces/{namespace}/pods/{name}/attach
create binding of a BindingPOST/api/v1/namespaces/{namespace}/pods/{name}/binding
connect GET requests to exec of PodGET/api/v1/namespaces/{namespace}/pods/{name}/exec
connect POST requests to exec of PodPOST/api/v1/namespaces/{namespace}/pods/{name}/exec
read log of the specified PodGET/api/v1/namespaces/{namespace}/pods/{name}/log
connect GET requests to portforward of PodGET/api/v1/namespaces/{namespace}/pods/{name}/portforward
connect POST requests to portforward of PodPOST/api/v1/namespaces/{namespace}/pods/{name}/portforward

1.4. ReplicationController

分类说明方法API
list or watch objects of kind ReplicationControllerGET/api/v1/namespaces/{namespace}/replicationcontrollers
read the specified ReplicationControllerGET/api/v1/namespaces/{namespace}/replicationcontrollers/{name}
create a ReplicationControllerPOST/api/v1/namespaces/{namespace}/replicationcontrollers
delete a ReplicationControllerDELETE/api/v1/namespaces/{namespace}/replicationcontrollers/{name}
replace the specified ReplicationControllerPUT/api/v1/namespaces/{namespace}/replicationcontrollers/{name}
partially update the specified ReplicationControllerPATCH/api/v1/namespaces/{namespace}/replicationcontrollers/{name}
replace status of the specified ReplicationControllerPUT/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status

1.5. Node

分类说明方法API
list or watch objects of kind NodeGET/api/v1/nodes
read the specified NodeGET/api/v1/nodes/{name}
create a NodePOST/api/v1/nodes
delete a NodeDELETE/api/v1/nodes/{name}
replace the specified NodePUT/api/v1/nodes/{name}
partially update the specified NodePATCH/api/v1/nodes/{name}
replace status of the specified NodePUT/api/v1/nodes/{name}/status

1.6. Service

分类说明方法API
list or watch objects of kind ServiceGET/api/v1/namespaces/{namespace}/services
read the specified ServiceGET/api/v1/namespaces/{namespace}/services/{name}
create a ServicePOST/api/v1/namespaces/{namespace}/services
delete a ServiceDELETE/api/v1/namespaces/{namespace}/services/{name}
replace the specified ServicePUT/api/v1/namespaces/{namespace}/services/{name}
partially update the specified ServicePATCH/api/v1/namespaces/{namespace}/services/{name}

1.7. ResourceQuota

1.8. Secret

1.9. ServiceAccount

1.10. PersistentVolume

1.11. Event

1.12. LimitRange

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值