mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-19 02:20:41 +03:00
Add az list nodes command
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user