Thursday 2 January 2020

Create Azure Kubernetes service and view dashboard | Docker part 4

Where by Using Docker, We build and run containers, and store and share container images.

There by using Kubernetes we orchestrates and manages the containerized applications that Docker creates. It also provides the infra needed to deploy and run those applications on a cluster of machines. Know more about Kubernetes here on Microsoft Official.





Let's know simple steps by following which we will be create Kubernetes serves and kubernetes dashboard.
Kubernetes dashboard will run locally.










PS C:\Users\raj.kumar1> az login
You have logged in. Now let us find all the subscriptions to which you have access...
[
  {
    "cloudName": "AzureCloud",
    "id": "88b268f4-b6e6-432a-84c7-64cc125a9f11",
    "isDefault": true,
    "name": "Free Trial",
    "state": "Enabled",
    "tenantId": "0fec8578-a553-4c8f-839b-a6d83f5932a3",
    "user": {
      "name": "mr.raj111@hotmail.com",
      "type": "user"
    }
  }
]

PS C:\Users\raj.kumar1> kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard

clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created

PS C:\Users\raj.kumar1> az aks get-credentials --resource-group FreeKubernetesResource --name KubApps
Merged "KubApps" as current context in C:\Users\raj.kumar1\.kube\config

PS C:\Users\raj.kumar1> az aks browse --resource-group FreeKubernetesResource --name KubApps
Merged "KubApps" as current context in C:\Users\RAJ~1.KUM\AppData\Local\Temp\tmp3_vvoxr5
Proxy running on http://127.0.0.1:8001/
Press CTRL+C to close the tunnel...