简体   繁体   English

从源运行 kubernetes 并配置云提供商

[英]Run kubernetes from source and configure cloud provider

Is it possible to run kubernetes from source (./hack/local-up-cluster.sh) and still properly configure the cloud provider from this type of setup?是否可以从源代码 (./hack/local-up-cluster.sh) 运行 kubernetes 并且仍然可以从这种类型的设置中正确配置云提供商? For example, if an instance is running on AWS EC2 and all prerequisites are met including proper exports, aws cli and configs but keep getting an error stating that the cloud provider was not found.例如,如果一个实例在 AWS EC2 上运行并且满足所有先决条件,包括正确的导出、aws cli 和 configs,但不断收到错误消息,指出未找到云提供商。 KUBERNETES_PROVIDER=aws, Zone is set to us-west-2a, etc... KUBERNETES_PROVIDER=aws,Zone 设置为 us-west-2a,等等...

Failed to get AWS Cloud Provider. plugin.host.GetCloudProvider returned <nil> instead

I don't think hack/local-up-cluster.sh is designed to be run on a cloud provider.我不认为hack/local-up-cluster.sh旨在在云提供商上运行。 However, cluster/kube-up.sh is designed to work when building from source:然而, cluster/kube-up.sh从源文件编译时设计工作:

$ make release
$ export KUBERNETES_PROVIDER=aws
$ cluster/kube-up.sh  # Uses the release built in step 1

There are lots of options which can be configured, and you can find more details here (just ignore the part about https://get.k8s.io ).有很多可以配置的选项,你可以在这里找到更多细节(忽略关于https://get.k8s.io的部分)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM