amazon-web-services - 如何在 ssh 中打开 aws ec2 的主节点
问题描述
我在主 EC2 实例中使用 kops 和 kubectl 创建了 kubernetes 集群,并自动创建了主子节点。
kops create cluster \
--state=${KOPS_STATE_STORE} \
--node-count=2 \
--master-size=t2.medium \
--node-size=t2.medium \
--zones=ap-south-1a,ap-south-1b \
--name=${KOPS_CLUSTER_NAME} \
--dns private \
--master-count 1
我可以从 git bash 或直接连接 kops ec2 instance(main)。但我无法以任何方式打开主实例。
ssh -i key1.pem ec2-user@kops-ip #working for kops
在连接到主节点时,它的提供:
There was a problem setting up the instance connection
Log in failed. If this instance has just started up, try again in a minute or two.
我的问题是:
1.如何打开主ec2实例?
2.我需要在master或kops实例(目前有)中安装kubernetes仪表板吗?
AWS 实例:
kops(ec2-user)
master-ap-south-1a.masters.a.com
nodes.a.com
nodes.a.com
解决方案
推荐阅读
- flutter - 如何在颤动评分栏中保存用户评分?
- c# - 如何在 .NET Core 3.1 的子线程中设置主线程 CultureInfo.CurrentUICulture 的值?
- r - 使用 tidyverse 清理排名选择调查
- python - 使用 Json 内容抓取网站会导致值错误
- javascript - 移动设备与桌面上的幻灯片显示不正确
- django - Django DRF - api webview中的“隐藏用户”(必填字段)
- firebase - 选项卡打开但不在焦点时出现 Firebase 通知问题
- python - raise ValueError("未转换的数据仍然存在:%s" % ValueError:未转换的数据仍然存在:
- amazon-web-services - MEAN 堆栈应用程序的 AWS 结构
- react-router - @expo/vector-icon 未加载 Android 设备