From 9920fac86ea94c27af7cd130e2fc228bed6f925d Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 10:12:08 -0500 Subject: [PATCH] Specify public key file --- docs/05-kubernetes-configuration-files.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/05-kubernetes-configuration-files.md b/docs/05-kubernetes-configuration-files.md index 6e55b59..01fa260 100644 --- a/docs/05-kubernetes-configuration-files.md +++ b/docs/05-kubernetes-configuration-files.md @@ -206,8 +206,8 @@ done ``` for instance in worker-0 worker-1 worker-2; do IP=$(az vm show -d --name ${instance} --query "publicIps" -o tsv) - scp ${instance}.kubeconfig azureuser@${IP}:/home/azureuser - scp kube-proxy.kubeconfig azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway ${instance}.kubeconfig azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway kube-proxy.kubeconfig azureuser@${IP}:/home/azureuser done ``` @@ -224,9 +224,9 @@ done ``` for instance in controller-0 controller-1 controller-2; do IP=$(az vm show -d --name ${instance} --query "publicIps" -o tsv) - scp admin.kubeconfig azureuser@${IP}:/home/azureuser - scp kube-controller-manager.kubeconfig azureuser@${IP}:/home/azureuser - scp kube-scheduler.kubeconfig azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway admin.kubeconfig azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway kube-controller-manager.kubeconfig azureuser@${IP}:/home/azureuser + scp -i $HOME/.ssh/k8sthehardway kube-scheduler.kubeconfig azureuser@${IP}:/home/azureuser done ```