How To Entry Azure Kubernetes Cluster Utilizing Azure Cloud Shell
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
Step 1
Step 2
When you log-in discover and click on the small Cloud Shell icon close to the search bar, as proven within the image.
Step 3
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.
Step 4
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.
Step 5
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
Step 6
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
Step 7
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.