为什么AWS提供程序的OpenShift安装程序无法连接到Kubernetes API?

问题描述 投票:0回答:1

OpenShift AWS安装程序无法等待Kubernetes API出现,并出现致命错误“等待Kubernetes API:超出上下文期限”:

$ openshift-install create cluster --dir=$HOME/openshift --log-level debug
...
DEBUG Still waiting for the Kubernetes API: Get https://api.cluster-name.'IP_ADDRESS'.nip.io:6443/version?timeout=32s: dial tcp 'IP_ADDRESS':6443: i/o timeout 
DEBUG Still waiting for the Kubernetes API: Get https://api.cluster-name.'IP_ADDRESS'.nip.io:6443/version?timeout=32s: dial tcp 'IP_ADDRESS':6443: i/o timeout 
DEBUG Still waiting for the Kubernetes API: Get https://api.cluster-name.'IP_ADDRESS'.nip.io:6443/version?timeout=32s: dial tcp 'IP_ADDRESS':6443: i/o timeout 
DEBUG Still waiting for the Kubernetes API: Get https://api.cluster-name.'IP_ADDRESS'.nip.io:6443/version?timeout=32s: dial tcp 'IP_ADDRESS':6443: i/o timeout 
DEBUG Fetching "Install Config"...                 
DEBUG Loading "Install Config"...                  
DEBUG   Loading "SSH Key"...                       
DEBUG   Using "SSH Key" loaded from state file     
DEBUG   Loading "Base Domain"...                   
DEBUG     Loading "Platform"...                    
DEBUG     Using "Platform" loaded from state file  
DEBUG   Using "Base Domain" loaded from state file 
DEBUG   Loading "Cluster Name"...                  
DEBUG     Loading "Base Domain"...                 
DEBUG   Using "Cluster Name" loaded from state file 
DEBUG   Loading "Pull Secret"...                   
DEBUG   Using "Pull Secret" loaded from state file 
DEBUG   Loading "Platform"...                      
DEBUG Using "Install Config" loaded from state file 
DEBUG Reusing previously-fetched "Install Config"  
INFO Use the following commands to gather logs from the cluster 
... 
FATAL waiting for Kubernetes API: context deadline exceeded 

也描述了问题here

amazon-web-services kubernetes openshift
1个回答
0
投票
就我而言,安装程序尝试连接到链接到不存在的端点的Kubernetes API。一种迹象表明,如果在运行诸如oc之类的简单命令时oc whoami-客户端挂起,则它实际上试图连接到同一端点(假设已设置KUBECONFIG)。原来,这与Route 53托管区域有关,尤其是与子域有关。当针对子域安装OpenShift时(例如我的情况),需要在主域中创建引用该子域的记录集。因此,对于openshift.example.com,请在aws控制台中执行以下操作:转到路线53->托管区域->单击openshift.example.com。 (如果不存在,请创建一个托管区域)->复制NS记录,例如:
© www.soinside.com 2019 - 2024. All rights reserved.