开发者社区> 问答> 正文

如何通过CLI查看集群实例?

如何通过CLI查看集群实例?

展开
收起
小天使爱美 2020-03-31 21:32:10 683 0
1 条回答
写回答
取消 提交回答
  • 具体的 API 描述,参见查询集群实例。

    API请求响应 请求格式

    aliyun cs GET /clusters/<cluster_id> 响应结果

    { "name": "sian-devk8s", "cluster_id": "cdde1f21ae22e483ebcb068a6eb7f358d", "size": 1, "region_id": "cn-beijing", "state": "running", "cluster_type": "ManagedKubernetes", "created": "2019-11-25T15:50:20+08:00", "updated": "2020-01-13T23:01:03+08:00", "init_version": "1.14.8-aliyun.1", "current_version": "1.14.8-aliyun.1", "meta_data": "{"Addons":[{"name":"flannel","version":"","disabled":false,"required":"","config":""},{"name":"flexvolume","version":"","disabled":false,"required":"","config":""},{"name":"alicloud-disk-controller","version":"","disabled":false,"required":"","config":""},{"name":"logtail-ds","version":"","disabled":false,"required":"","config":"{\"IngressDashboardEnabled\":\"true\"}"},{"name":"nginx-ingress-controller","version":"","disabled":false,"required":"","config":"{\"IngressSlbNetworkType\":\"internet\"}"},{"name":"kube-flannel-ds","version":"","disabled":false,"required":"","config":""}],"Capabilities":{"AnyAZ":true,"CSI":true,"CpuPolicy":true,"DeploymentSet":true,"HpcCluster":true,"Network":"Flannel","NodeCIDRMask":"25","NodeNameMode":true,"ProxyMode":"ipvs","PublicSLB":true,"SLSProjectName":true,"SandboxRuntime":false,"Taint":true,"TerwayEniip":true,"UserData":true},"ClusterDomain":"","DockerVersion":"18.09.2","EtcdVersion":"v3.3.8","HasSandboxRuntime":false,"KubernetesVersion":"1.14.8-aliyun.1","MultiAZ":false,"NameMode":"","OSType":"Linux","Platform":"CentOS","PodVswitchId":"","Provider":"","ResourceGroupId":"rg-acfmyvw3wjmb3uq","SubClass":"default","SupportPlatforms":null,"VersionSpec":null,"VpcCidr":"192.168.0.0/16"}", "resource_group_id": "rg-acfmyvw3wjmb3uq", "instance_type": "", "vpc_id": "vpc-2zecuu62b9zw7a7qnn2tv", "vswitch_id": "vsw-2zete8s4qocqg0mf6xd76", "vswitch_cidr": "", "data_disk_size": 0, "data_disk_category": "cloud", "security_group_id": "sg-2zedf74ifulatvx0z2ag", "tags": [ { "key": "ack.aliyun.com", "value": "cdde1f21ae22e483ebcb068a6eb7f358d" } ], "zone_id": "cn-beijing-a", "-": "PayByTraffic", "network_mode": "vpc", "subnet_cidr": "172.20.0.0/16", "master_url": "{"api_server_endpoint":"https://47.93.195.255:6443https://mirana.cs-cn-beijing.aliyuncs.com:4243https://192.168.0.79:6443"}", "external_loadbalancer_id": "lb-2ze3buguz3gx9920zwf24", "port": 0, "node_status": "", "cluster_healthy": "", "docker_version": "18.09.2", "swarm_mode": false, "gw_bridge": "", "upgrade_components": { "Kubernetes": { "component_name": "Kubernetes", "version": "1.14.8-aliyun.1", "next_version": "", "changed": "", "can_upgrade": false, "force": false, "policy": "", "ExtraVars": null, "ready_to_upgrade": "", "message": "", "exist": false, "required": false } }, "private_zone": false, "profile": "", "deletion_protection": true, "capabilities": null, "enabled_migration": false, "need_update_agent": false, "outputs": [ { "Description": "Log Info Output", "OutputKey": "LastKnownError", "OutputValue": null }, { "Description": "Error msg of ess scaling instance", "OutputKey": "NodesScalingErrorInfo", "OutputValue": null }, { "Description": "The mode we use in kube-proxy.", "OutputKey": "ProxyMode", "OutputValue": "ipvs" }, { "Description": "ScalingGroup ID", "OutputKey": "ScalingGroupID", "OutputValue": "asg-2zebrr08gt5uluh7u5ar" }, { "Description": "Ids of worker node", "OutputKey": "NodeInstanceIDs", "OutputValue": [ "i-2ze4ymrjuocpbc0cftdj", "i-2ze4ymrjuocpbc0cftdk", "i-2ze4ymrjuocpbc0cftdl" ] }, { "Description": "Count of ess scaling instance", "OutputKey": "NodesScalingAddedInstances", "OutputValue": 3 } ]

    2020-03-31 21:34:09
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
ACK集群类型选择最佳实践 立即下载
阿里云E-MapReduce 全面开启 Serverless 立即下载
PostgreSQL复制原理及高可用集群 立即下载