其他分享
首页 > 其他分享> > 利用kops在AWS创建cluster时指定key pair name

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

作者:互联网

最近接手运维一个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名称。

标签:name,创建,AWS,cluster,key,pair,kops
来源: https://www.cnblogs.com/LeoGIS/p/15212928.html