在 AWS 云 ap-northeast-2 区域中创建 Kubernetes 集群会抛出“请直接指定 AWS_IMAGE(区域无法识别)”消息。
尝试通过设置区域“export KUBE_AWS_ZONE="ap-northeast-2a"”。但仍然无法创建。
[root@ip-172-31-29-160 cluster]# export KUBE_AWS_ZONE="ap-northeast-2a"
[root@ip-172-31-29-160 cluster]# ./kube-up.sh
*********************************************************
ZONE: ap-northeast-2a
REGION: ap-northeast-2
*********************************************************
... Starting cluster using provider: aws
... calling verify-prereqs
... calling kube-up
Starting cluster using os distro: vivid
Please specify AWS_IMAGE directly (region not recognized)
[root@ip-172-31-29-160 cluster]#
kubernetes/cluster/aws/config-default.sh
ZONE=${KUBE_AWS_ZONE:-ap-northeast-2a}
MASTER_SIZE=${MASTER_SIZE:-t2.large}
MINION_SIZE=${MINION_SIZE:-t2.large}
NUM_MINIONS=${NUM_MINIONS:-1}