Openshift 3.11 cloud integration fails with lookup RequestError: send request failed\\ncaused by: Post https://ec2.eu-west-.amazonaws.com

Openshift 3.11 cloud integration fails with lookup RequestError: send request failed\\ncaused by: Post https://ec2.eu-west-.amazonaws.com

遵循文档:https://docs.openshift.com/container-platform/3.11/install_config/configuring_aws.html#aws-cluster-labeling

在集群构建后配置云集成。

当集群服务在主机上重新启动时,它无法查找 AWS 实例:

22 16:32:10.112895   75995 server.go:261] failed to run Kubelet: could not init cloud provider "aws": error finding instance i-0c5cbd50923f9c6d2: "error listing AWS instances: \"Request.service: main process exited, code=exited, status=255/n/a Error: send request failed\ncaused by: Post https://ec2.eu-west-.amazonaws.com/: dial tcp: lookup ec2.eu-west-.amazonaws.com: no such host\""

仔细检查似乎是由于主机名不正确:

https://ec2.eu-west-.amazonaws.com/ VS https://ec2.eu-west-2.amazonaws.com/

所以我仔细检查了配置,这似乎是正确的:

# cat /etc/origin/cloudprovider/aws.conf
[Global]
Zone = eu-west-2

有一个 google,这似乎是一个类似的问题:

https://github.com/kubernetes-sigs/kubespray/issues/4345

有办法解决这个问题吗?离开 3.11 目前不是一个选项。

谢谢。

看起来它需要是区域,而不是区域。

# cat /etc/origin/cloudprovider/aws.conf
[Global]
Zone = eu-west-2a