From ec7b4318765534b2dd9311aba33ea2b7476d42bf Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 12:25:43 -0500 Subject: [PATCH] azure updates --- docs/09-bootstrapping-kubernetes-workers.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/09-bootstrapping-kubernetes-workers.md b/docs/09-bootstrapping-kubernetes-workers.md index 9958f88..5a0d000 100644 --- a/docs/09-bootstrapping-kubernetes-workers.md +++ b/docs/09-bootstrapping-kubernetes-workers.md @@ -4,12 +4,24 @@ In this lab you will bootstrap three Kubernetes worker nodes. The following comp ## Prerequisites -The commands in this lab must be run on each worker instance: `worker-0`, `worker-1`, and `worker-2`. Login to each worker instance using the `gcloud` command. Example: +The commands in this lab must be run on each worker instance: `worker-0`, `worker-1`, and `worker-2`. Login to each: +```gcloud``` ``` gcloud compute ssh worker-0 ``` +```az``` +``` +az ssh vm --name worker-0 --local-user azureuser +``` + +OR + +``` +ssh -i $HOME/.ssh/k8sthehardway azureuser@$(az vm show -d --name worker-0 --query "publicIps" -o tsv) +``` + ### Running commands in parallel with tmux [tmux](https://github.com/tmux/tmux/wiki) can be used to run commands on multiple compute instances at the same time. See the [Running commands in parallel with tmux](01-prerequisites.md#running-commands-in-parallel-with-tmux) section in the Prerequisites lab. @@ -19,10 +31,8 @@ gcloud compute ssh worker-0 Install the OS dependencies: ``` -{ - sudo apt-get update - sudo apt-get -y install socat conntrack ipset -} +sudo apt-get update +sudo apt-get -y install socat conntrack ipset ``` > The socat binary enables support for the `kubectl port-forward` command.