首页 > 其他 > 详细

利用kops在AWS创建cluster时指定key pair name

时间:2021-09-01 18:00:03      阅读:19      评论:0      收藏:0      [点我收藏+]

最近接手运维一个Web Service的小项目,该项目中使用到了kops在AWS上创建cluster。

作为kops新手,之前完全没有接触过kops,这里记录下使用kops创建cluster的时候配置AWS的key pair的相关内容,高手请略过。

利用kops在AWS上创建cluster的时候,可以配置cluster来指定现有的key pair,否则会创建新的key pair,而对应pem文件由于没办法下载而导致无法远程登录创建的实例。

可以参考kops的github上的讨论:

https://github.com/kubernetes/kops/issues/4728

具体的:

Next edit cluster and add sshKeyName: aws-sandpit under .spec section, where aws-sandpit is an already existing EC2 SSH Key Pair.
即在.spec中添加配置sshKeyName项,其值为你现有的key pair名称。

利用kops在AWS创建cluster时指定key pair name

原文:https://www.cnblogs.com/LeoGIS/p/15212928.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!