0

我创建了一个具有 3 个节点的 azure AKS(标准 DS3 v2(4 vcpus,14 GB 内存))。我正在摆弄集群并创建了一个包含 1000 个副本的部署。在这个完整的集群关闭之后。

azureuser@saa:~$ k get cs
NAME                 STATUS      MESSAGE                                                                                        ERROR
controller-manager   Unhealthy   Get http://127.0.0.1:10252/healthz: dial tcp 127.0.0.1:10252: getsockopt: connection refused   
scheduler            Unhealthy   Get http://127.0.0.1:10251/healthz: dial tcp 127.0.0.1:10251: getsockopt: connection refused   
etcd-0               Healthy     {"health": "true"}  

从调试来看,Scheduler 和 Controller-manager 似乎都出现了故障。如何解决这个问题?

创建具有 1000 个副本的 Deployment 时究竟发生了什么?k8s应该照顾它吗?

很少的调试命令输出:

  kubectl cluster-info
    Kubernetes master is running at https://cg-games-e5252212.hcp.eastus.azmk8s.io:443
    Heapster is running at https://cg-games-e5252212.hcp.eastus.azmk8s.io:443/api/v1/namespaces/kube-system/services/heapster/proxy
    KubeDNS is running at https://cg-games-e5252212.hcp.eastus.azmk8s.io:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
    kubernetes-dashboard is running at https://cg-games-e5252212.hcp.eastus.azmk8s.io:443/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy

kubectl cluster-info dump@ http://termbin.com/e6wb的日志

azureuser@sim:~$ az aks scale -n cg -g cognitive-games -c 4 --verbose
Deployment failed. Correlation ID: 4df797b2-28bf-4c18-a26a-4e341xxxxx. Operation failed with status: 200. Details: Resource state Failed

没有显示节点

azureuser@si:~$ k get nodes
No resources found
4

1 回答 1

0

看起来很傻,但是当在 RG 中创建 AKS 时,令人惊讶的是,创建了两个 RG,一个使用 AKS,另一个使用具有所有 VMS 的随机散列创建。我已经删除了第二个 RG,基本的 AKS 停止工作。

于 2018-02-13T12:11:57.957 回答