Error saying "SSH public key must be specified when running with aws" when trying to create the cluster

0 votes

I'm trying to create a cluster,

I've created a hosted domain zone along with an s3 bucket.

I'm using the following command to create the cluster

kops create cluster --cloud=aws --zones=us-east-2a --name=<name> --dns-zone=<zone_name> --dns private

Its throwing the following error:

SSH public key must be specified when running with aws.

As far as i remember my command is correct and not sure what ssh key its looking for.

Any help will be appreciated, thank you:)

Oct 17, 2018 in Kubernetes by Nilesh
• 6,880 points
737 views

2 answers to this question.

0 votes
You need to create the public key of its own as the cluster does not communicate with any other key. Follow these steps Nilesh to create the public key

1. cd .ssh

2. ssh-keygen

3. Set the location as id_rsa

4. it'll promp for a password, if you want the password, eneter the password or else just press ENETR and the public key will be created.
answered Oct 17, 2018 by Kalgi
• 41,810 points
0 votes
1. First we have to create a public key using ssh-keygen

2. then we have to match this public key with cluster

for example like mentioned below

kops create secret sshpublickey  admin -i ~/.ssh/id_rsa.pub  --name devi.k8s.local

where for --name, we have to give cluster name
answered Feb 27 by anonymous
Where do I create the public key? In my master node or worker node?

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 41,810 points
70 views
0 votes
1 answer