[英]How to work with AWS cloud controller manager
I am trying to expose my applications running in my kubernetes cluster through AWS load balancer.我正在尝试通过 AWS 负载均衡器公开在 kubernetes 集群中运行的应用程序。 I followed the document https://cloudyuga.guru/blog/cloud-controller-manager and got till the point where i added
--cloud-provider=external
in kubeadm.conf file.我按照文档https://cloudyuga.guru/blog/cloud-controller-manager进行操作,直到在kubeadm.conf文件中添加了
--cloud-provider=external
。 But this document is based on Digitial Ocean cloud and i'm working on AWS, i'm confused if i have to run any deployment.yaml file to get the pods running which are in pending status if so please provide me the link, i'm stuck at this point.但是本文档基于 Digitial Ocean 云,我正在使用 AWS,如果我必须运行任何部署,我会感到困惑。yaml 文件以使处于待处理状态的 pod 运行,如果是,请提供链接,我我被困在这一点上。
NAME READY STATUS RESTARTS AGE
coredns-66bff467f8-dlx76 0/1 Pending 0 3m32s
coredns-66bff467f8-svb6z 0/1 Pending 0 3m32s
etcd-ip-172-31-74-144.ec2.internal 1/1 Running 0 3m38s
kube-apiserver-ip-172-31-74-144.ec2.internal 1/1 Running 0 3m38s
kube-controller-manager-ip-172-31-74-144.ec2.internal 1/1 Running 0 3m37s
kube-proxy-rh8g4 1/1 Running 0 3m32s
kube-proxy-vsvlt 1/1 Running 0 3m28s
kube-scheduler-ip-172-31-74-144.ec2.internal 1/1 Running 0 3m37s
The coredns
pods are pending
because you have not installed a Pod Network add-on yet. coredns
pod 处于pending
状态,因为您尚未安装 Pod Network 插件。 From the docs here you can choose any supported Pod Network add-on.从此处的文档中,您可以选择任何受支持的 Pod Network 插件。 For example to use calico
例如使用印花布
kubectl apply -f https://docs.projectcalico.org/v3.14/manifests/calico.yaml
After the Pod Network add-on is installed the coredns
pods should come up.安装 Pod Network 插件后,
coredns
pod 应该会出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.