What’s Azure Cloud Shell?
Azure Cloud Shell is a browser-based shell expertise to handle and develop Azure assets.
Cloud Shell presents a browser-accessible, pre-configured shell expertise for managing Azure assets with out the overhead of putting in, versioning, and sustaining a machine your self. Azure Cloud Shell runs on Ubuntu 16.04 LTS.
You may entry the Cloud Shell within the following methods,
- Direct hyperlink: Open a browser to right here.
- Azure portal: Choose the Cloud Shell icon on the Azure portal
Entry Azure Kubernetes Cluster Utilizing Azure Cloud Shell
When you log-in discover and click on the small Cloud Shell icon close to the search bar, as proven within the image.
The portal will ask you to pick out both PowerShell or Bash as your default shell expertise. As we will probably be working with primarily Linux workloads, please choose Bash.
If that is the primary time you’ve gotten launched Cloud Shell, you may be requested to create a storage account; affirm, and create it.
You would possibly get an error message that incorporates a mount storage error. If that error happens, please restart your Cloud Shell.
Click on on the facility button. It ought to restart, and you need to see one thing just like
The command-line device that’s used to interface with Kubernetes clusters is known as kubectl. The good thing about utilizing Azure Cloud Shell is that this device, together with many others, comes preinstalled and is commonly maintained. kubectl makes use of a configuration file saved in ~/.kube/config to retailer credentials to entry your cluster.
To get the required credentials to entry your cluster; in my case cluster title is rh-k8s-training, it is advisable to kind the next command:
az aks get-credentials –resource-group rh-k8s-training –name rh-k8s-training
To confirm that you’ve entry, kind the command: kubectl get nodes. It is best to see the output as talked about within the screenshot.
Lastly, we have now verified that we will connect with our AKS cluster.