Azure

How To Entry Azure Kubernetes Cluster Utilizing Azure Cloud Shell

 

Within the earlier article, we did the AKS cluster deployment efficiently. Now we have now to entry our deployed cluster, and for that we are going to use the Azure Cloud Shell. However first we have now to find out about Azure Cloud Shell. Let’s begin.

 

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

 

Check in and open your Azure administration portal right here.

 

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.

 

Azure Kubernetes Service AKS with Cloud Shell

 

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.

Azure Kubernetes Service AKS with Cloud Shell

 

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.

 

Azure Kubernetes Service AKS with Cloud Shell

 

Step 5

 

You would possibly get an error message that incorporates a mount storage error. If that error happens, please restart your Cloud Shell.

 

Azure Kubernetes Service AKS with Cloud Shell

 

Click on on the facility button. It ought to restart, and you need to see one thing just like

 

Azure Kubernetes Service AKS with Cloud Shell

 

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.

 

Azure Kubernetes Service AKS with Cloud Shell

 

Lastly, we have now verified that we will connect with our AKS cluster.

Tags
Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Close