From 5837e6796dd9f47f96e1f68ba99ef873b6b7373b Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 10:37:14 -0500 Subject: [PATCH] Add azure ssh --- docs/08-bootstrapping-kubernetes-controllers.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/08-bootstrapping-kubernetes-controllers.md b/docs/08-bootstrapping-kubernetes-controllers.md index 65cad45..20ea2c8 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -303,10 +303,22 @@ In this section you will configure RBAC permissions to allow the Kubernetes API The commands in this section will effect the entire cluster and only need to be run once from one of the controller nodes. +```gcloud``` ``` gcloud compute ssh controller-0 ``` +```az``` +``` +az ssh vm --name controller-0 --local-user azureuser +``` + +OR + +``` +ssh -i $HOME/.ssh/k8sthehardway azureuser@$(az vm show -d --name controller-0 --query "publicIps" -o tsv) +``` + Create the `system:kube-apiserver-to-kubelet` [ClusterRole](https://kubernetes.io/docs/admin/authorization/rbac/#role-and-clusterrole) with permissions to access the Kubelet API and perform most common tasks associated with managing pods: ```