kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.3k stars 14.13k forks source link

machines.txt #786

Open vranga0812 opened 6 months ago

vranga0812 commented 6 months ago

I created 4 arm based virtual machines in the google cloud and they all are in same nic. I'm working on creating machines.txt for this setup, I'm little confused on the value i have to give for the POD_SUBNET, do i need to give the nic's subnetwork range (which would be same for all the nodes

anhquan99 commented 5 months ago

Hi @vranga0812 I got stuck in the step Copy the SSH public key to each machine: while running command

while read IP FQDN HOST SUBNET; do 
  ssh-copy-id root@${IP}
done < machines.txt

I always get Permission denied (publickey), how did you get through that step? Thanks!

vranga0812 commented 5 months ago

i had the same issue, i copied the ssh keys manually

anhquan99 commented 5 months ago

That makes sense, thanks @vranga0812!

ndreaxan commented 1 month ago

I ran into the same issue. However, I noticed that the format shown is not correct. It's supposed to be like this: XXX.XXX.XXX.XXX server server.kubernetes.local XXX.XXX.XXX.XXX node-0 node-0.kubernetes.local 10.200.0.0/24 XXX.XXX.XXX.XXX node-1 node-1.kubernetes.local 10.200.1.0/24 Once I made that change, the loop executed with no errors