amazon-web-services - 在 KOP 中定义自定义 SSH key 或查找自动生成的 SSH key

标签 amazon-web-services kubernetes kops

我正在使用 KOP 在 AWS 环境中启动 Kubernetes 集群。

  1. 调用 create cluster 时是否可以设置预定义的 SSH key ?
  2. 如果 KOPs 在运行 create cluster 时自动生成 SSH key ,是否有办法下载此 key 以访问集群节点?

最佳答案

请阅读 Kops SSH docs :

When using the default images, the SSH username will be admin, and the SSH private key is be the private key corresponding to the public key in kops get secrets --type sshpublickey admin. When creating a new cluster, the SSH public key can be specified with the --ssh-public-key option, and it defaults to ~/.ssh/id_rsa.pub.

所以回答你的问题:

  1. 是的,您可以使用 --ssh-public-key 设置 key >
  2. 当未指定 --ssh-public-key 时,Kops 不会自动生成 key ,而是使用在 ~.ssh/id_rsa.pub 中找到的 key /li>

关于amazon-web-services - 在 KOP 中定义自定义 SSH key 或查找自动生成的 SSH key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42862555/

相关文章:

azure - Terraform - AKS POD 应该能够添加和删除外部 DNS 记录

amazon-web-services - 通过AWS EKS进行KOPS或反之亦然

kubernetes - OpenEBS中存储池的hostdir类型是什么?

amazon-web-services - 如何使用 kops 更改现有的 kubernetes aws 集群(更改节点类型)

kubernetes - KOPS在哪里/从哪里运行?

amazon-web-services - SAM CLI 无法在 Docker Desktop for Windows 上与 SSL 对话

amazon-web-services - 如何通过 Cloudformation 在 Beanstalk 实例上获取 SSL 证书

php - Amazon S3 - 405 方法不允许使用 POST(尽管我允许在存储桶上使用 POST)

amazon-web-services - AWS RDS 和 pgAdmin4 : Unable to connect to server: could not connect to server: Connection timed out

Kubernetes Daemonsets 和 Nodeports