init_k8s_pod_local.sh 251 B

123456
  1. #!/bin/bash
  2. echo 'manager_node_ip manager_node_hostname' >> /etc/hosts
  3. ssh-keyscan -H manager_node_hostname >> /root/.ssh/known_hosts
  4. ssh-keygen -t rsa -b 4096 -f /root/.ssh/id_rsa -q -N "" -y
  5. sshpass -p 'os_passwd' ssh-copy-id 'root@manager_node_ip'