From 5b958c7741fe98220e5eb8da7c73975b75a3e62f Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 12:37:41 -0500 Subject: [PATCH] Add az list nodes command --- docs/09-bootstrapping-kubernetes-workers.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/09-bootstrapping-kubernetes-workers.md b/docs/09-bootstrapping-kubernetes-workers.md index 33d99f1..e2f8781 100644 --- a/docs/09-bootstrapping-kubernetes-workers.md +++ b/docs/09-bootstrapping-kubernetes-workers.md @@ -307,11 +307,17 @@ sudo systemctl start containerd kubelet kube-proxy List the registered Kubernetes nodes: +```gcloud``` ``` gcloud compute ssh controller-0 \ --command "kubectl get nodes --kubeconfig admin.kubeconfig" ``` +```az``` +``` +ssh -i $HOME/.ssh/k8sthehardway azureuser@$(az vm show -d --name controller-0 --query "publicIps" -o tsv) "kubectl get nodes --kubeconfig admin.kubeconfig" +``` + > output ```