查询容器Kubernetes集群列表 功能介绍 查询容器Kubernetes集群列表 调用方法 请参见如何调用API。
objects k8s集群审计日志列表 表5 ClusterAuditLogResponseInfo 参数 参数类型 描述 cluster_name String 集群名称 cluster_id String 集群id time Long 日志产生的时间 content String
cluster_id 否 String 集群id cluster_name 否 String 集群名称 namespace 否 String 产生日志的容器所属的命名空间 pod_name 否 String 产生日志的容器所属pod的名称 pod_id 否 String 产生日志的容器所属
Integer 重启次数 pod_name String 所属pod名称 cluster_name String 所属集群 cluster_id String 集群id cluster_type String 集群类型,包含以下几种: -k8s 原生集群 -cce CCE集群 -
Integer 服务数量 pod_num Integer pod数量 请求示例 集群资产统计数量 GET /v5/{project_id}/cluster/asset/statistics { "cluster_num" : 0, "work_load_num" : 0
响应参数 状态码:200 请求已成功 无 请求示例 操作集群防护模式 POST https://{endpoint}/v5/{project_id}/cluster-protect/switch-mod?
取值范围: 字符长度1-256位 默认取值: 不涉及 cluster_id 是 String 集群ID 表2 Query参数 参数 是否必选 参数类型 描述 enterprise_project_id 否 String 参数解释: 主机所属的企业项目ID。
Integer 集群节点总数 cluster_id String 集群id charging_mode String 付费模式 | on_demand 按需 free 免费 请求示例 无 响应示例 无 状态码 状态码 描述 200 请求已成功 错误码 请参见错误码。
\",\"rules\":[{\"resources\":[\"namespaces\",\"pods\",\"nodes\",\"services\",\"endpoints\",\"configmaps\",\"events\",\"persistentvolumeclaims
URI DELETE /v5/{project_id}/container/kubernetes/multi-cloud/clusters/{cluster_id} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 参数解释: 项目ID,可通过我的凭证
Array of RuntimeRequestBody objects 容器运行时配置 cluster_status String 集群状态,包含如下: Available:可用,表示集群处于正常状态。
cluster.local\r\n\r\n user: kubernetes-admin\r\n\r\n name: kubernetes-admin@cluster.local\r\n\r\ncurrent-context: kubernetes-admin@cluster.local
父主题: 容器安装与配置
a03efb0c-xxxx-xxxx-xxxx-0255ac100b0b", "cluster_name" : "glz-2480", "cluster_type" : "cce", "image_name" : "prometheus-lightweight
" : 5, "cluster_node_not_installed_num" : 6, "not_cluster_node_not_installed_num" : 7 } 状态码 状态码 描述 200 请求已成功 错误码 请参见错误码。
of ClusterEventResponseInfo objects 集群安全事件列表 表6 ClusterEventResponseInfo 参数 参数类型 描述 action String 阻断动作 cluster_name String 集群名称 cluster_id String
cluster_id :集群 id。 host_tags:主机标签。
/bin/bash KUBE_APISERVER=`kubectl config view --output=jsonpath='{.clusters[].cluster.server}' | head -n1 ` CLUSTER_NAME=`kubectl config view
Containerd docker_endpoint:Docker isulad_endpoint:Isulad podman_endpoint:Podman runtime_path String 运行时路径 表6 schedule_info 参数 参数类型 描述 node_selector
云容器引擎 云容器引擎(Cloud Container Engine,CCE)基于云服务器快速构建高可靠的容器集群,将节点纳管到集群,企业主机安全通过在集群所在节点上部署Hostguard-agent,为集群中所有可用节点上的容器应用提供防护。
您即将访问非华为云网站,请注意账号财产安全