AWS EKS中没有可用的节点

时间:2019-03-22 23:56:29

标签: amazon-web-services kubernetes amazon-eks aws-eks

我正在尝试设置AWS EKS集群,并遵循https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html中的说明。但是在尝试设置仪表板时,我意识到我没有任何节点,也不知道为什么。

是的,我确保节点的CloudFormation堆栈具有我的EKS群集的确切名称,并且将aws-auth-cm.yaml与堆栈NodeInstanceRole一起应用了。

Amazon Kubernetes AWS-EKS is not getting created properly or not synched with kubectl出现了类似的问题,但那里没有可用的信息。

以下是一些信息:

$ kubectl get svc
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   <IP>         <none>        443/TCP   11d

$ kubectl get all --namespace=default
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   <IP>         <none>        443/TCP   11d

$ kubectl get nodes --namespace=kube-system
No resources found.

get nodes为我拥有的任何命名空间提供No resources foundkube-systemkube-publicdefault

$ kubectl get all --namespace=kube-system
NAME                                        READY     STATUS    RESTARTS   AGE
pod/heapster-7ff8d6bf9f-qv56t               0/1       Pending   0          44m
pod/kube-dns-69ff9fcd66-ls9w7               0/3       Pending   0          11d
pod/kubernetes-dashboard-669f9bbd46-xthpq   0/1       Pending   0          45m
pod/monitoring-influxdb-cc95575b9-qjk4r     0/1       Pending   0          44m

NAME                           TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)         AGE
service/heapster               ClusterIP   <IP>             <none>        80/TCP          44m
service/kube-dns               ClusterIP   <IP>             <none>        53/UDP,53/TCP   11d
service/kubernetes-dashboard   ClusterIP   <IP>             <none>        443/TCP         45m
service/monitoring-influxdb    ClusterIP   <IP>             <none>        8086/TCP        44m

NAME                                            DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/aws-node                         0         0         0         0            0           <none>          11d
daemonset.apps/kube-proxy                       0         0         0         0            0           <none>          11d
daemonset.apps/nvidia-device-plugin-daemonset   0         0         0         0            0           <none>          34m

NAME                                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/heapster               1         1         1            0           44m
deployment.apps/kube-dns               1         1         1            0           11d
deployment.apps/kubernetes-dashboard   1         1         1            0           45m
deployment.apps/monitoring-influxdb    1         1         1            0           44m

NAME                                              DESIRED   CURRENT   READY     AGE
replicaset.apps/heapster-7ff8d6bf9f               1         1         0         44m
replicaset.apps/kube-dns-69ff9fcd66               1         1         0         11d
replicaset.apps/kubernetes-dashboard-669f9bbd46   1         1         0         45m
replicaset.apps/monitoring-influxdb-cc95575b9     1         1         0         44m

更新:

从后端发送Kubernetes API调用以启动一些Pod之后,我得到以下输出(kubectl get jobs类似),但是仍然没有实际实例启动,并且作业从不执行。

$ kubectl get svc
kubernetes                                      ClusterIP   <IP>     <none>        443/TCP                                                       14d
svc-3d1de3dc-7ca1-1f83-7a5e-548e5c5b4d12        NodePort    <IP>     <none>        8082:32433/TCP,8081:30374/TCP,8096:31178/TCP,8083:31067/TCP   1m
svc-3d1de3dc-7ca1-1f83-7a5e-548e5c5b4d12-sut0   ClusterIP   <IP>     <none>        50001/TCP                                                     1m
svc-7429ae6b-6f4b-012b-2d93-7c244109090b        NodePort    <IP>     <none>        8082:30736/TCP,8081:31272/TCP,8096:30857/TCP,8083:30949/TCP   1m
svc-7429ae6b-6f4b-012b-2d93-7c244109090b-sut0   ClusterIP   <IP>     <none>        50001/TCP                                                     1m
svc-89e81309-f6e4-21b1-ab8d-ecfb74d08010        NodePort    <IP>     <none>        8082:32072/TCP,8081:31236/TCP,8096:30000/TCP,8083:31257/TCP   1m
svc-89e81309-f6e4-21b1-ab8d-ecfb74d08010-sut0   ClusterIP   <IP>     <none>        50001/TCP                                                     1m
svc-c196e61f-098e-7b10-9d05-6d06ccbdbb9f        NodePort    <IP>     <none>        8082:32541/TCP,8081:30305/TCP,8096:31738/TCP,8083:31846/TCP   1m
svc-c196e61f-098e-7b10-9d05-6d06ccbdbb9f-sut0   ClusterIP   <IP>     <none>        50001/TCP                                                     1m

0 个答案:

没有答案