简体   繁体   English

将cluser加入主节点时Kubernetes工作者节点连接被拒绝

[英]Kubernetes worker node connection refused while joining cluser to master node

I'm working on k8s setup with 1 master node and 1 worker node. 我正在使用1个主节点和1个工作节点进行k8s设置。 I'm done with master setup and now I'm trying to joining node to cluster: 我完成了主设置,现在尝试将节点加入集群:

sudo kubeadm join master_ip:6443 --token [token] --discovery-token-ca-cert-hash sha256:[key]

But got this error: 但是出现了这个错误:

[discovery] Trying to connect to API Server "master_ip:6443"
[discovery] Created cluster-info discovery client, requesting info from "https://master_ip:6443"
[discovery] Failed to request cluster info, will try again: [Get https://master_ip:6443/api/v1/namespaces/kube-public/configmaps/cluster-info: dial tcp master_ip:6443: i/o timeout]

I use two EC2 instances with CentOS 7 (1 for master and 1 for worker). 我将两个EC2实例与CentOS 7一起使用(1个用于master,1个用于worker)。 I'm able to telnet master_ip 6443 within the master, but failed within the worker. 我可以在master内telnet master_ip 6443 ,但在worker内失败。

What's going wrong here? 这是怎么了

我通过为端口设置AWS安全组来解决此问题。

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

相关问题 在AWS托管的kubernetes集群中的KOPS部署主节点上拒绝连接 - Connection refused on KOPS deployed master node in kubernetes cluster hosted on AWS AWS EMR连接到主节点:拒绝连接 - AWS EMR connect to Master Node: Connection Refused 连接到上游时连接()失败(111:连接被拒绝)。(节点/ nestjs)亚马逊弹性 - connect() failed (111: Connection refused) while connecting to upstream.(node / nestjs) amazon Elastic Spark:驱动程序/工作程序配置。 驱动程序是否在主节点上运行? - Spark: driver/worker configuration. Does driver run on Master node? 由 AWS EKS 管理的 Kubernetes 工作节点的固定 IP 地址 - Fixed IP address for Kubernetes worker node managed by AWS EKS 在 aws kube.netes 中创建节点组时出错 - Error while creating node group in aws kubernetes 适用于Node.JS项目的AWS部署NGINX连接被拒绝 - AWS Deployment NGINX Connection Refused for Node.JS Project 是什么原因导致AWS节点Lambda中的ECONNREFUSED,错误拒绝(本机)连接(本机)? - What causes a ECONNREFUSED, Connection refused at Error (native) in an AWS node Lambda? Cassandra Node卡住加入 - Cassandra Node Stuck on Joining 未授权使用 kops 在 AWS 上创建 Kubernetes 集群 - Unothorized to create Kubernetes cluser on AWS using kops
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM