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
• 7,050 points

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
• 52,360 points
–1 vote
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/  --name devi.k8s.local

where for --name, we have to give cluster name
answered Feb 27, 2019 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
• 52,360 points
+1 vote
1 answer
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP