Skip to content

Commit

Permalink
SSH key change
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jul 1, 2020
1 parent 3027e40 commit 32862a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,21 @@ else
sudo mv kops-linux-amd64 /usr/local/bin/kops
CLUSTER_NAME=kops-cni-test-cluster.k8s.local
export KOPS_STATE_STORE=s3://kops-cni-test-temp
kops create secret --name ${CLUSTER_NAME} sshpublickey admin -i ~/.ssh/id_rsa.pub

SSH_KEYS=~/.ssh/devopsinuse
if [ ! -f "$SSH_KEYS" ]
then
echo -e "\nCreating SSH keys ..."
ssh-keygen -t rsa -N '' -f ~/.ssh/devopsinuse
else
echo -e "\nSSH keys are already in place!"
fi

kops create cluster \
--zones ${AWS_DEFAULT_REGION}a,${AWS_DEFAULT_REGION}b \
--networking amazon-vpc-routed-eni \
--node-count 2 \
--ssh-public-key=~/.ssh/devopsinuse.pub \
${CLUSTER_NAME}
kops update cluster --name ${CLUSTER_NAME} --yes
sleep 40
Expand Down

0 comments on commit 32862a4

Please sign in to comment.