Add az list nodes command

pull/758/head
redsoxfantom 2024-01-29 12:37:41 -05:00
parent b6c72dbccc
commit 5b958c7741
1 changed files with 6 additions and 0 deletions

View File

@ -307,11 +307,17 @@ sudo systemctl start containerd kubelet kube-proxy
List the registered Kubernetes nodes: List the registered Kubernetes nodes:
```gcloud```
``` ```
gcloud compute ssh controller-0 \ gcloud compute ssh controller-0 \
--command "kubectl get nodes --kubeconfig admin.kubeconfig" --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 > output
``` ```