Skip to content

NVISIA/k8s-day2-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Custom K8s with AKS - Day 2

Get Connected

  1. Open a browser tab
  2. Log into https://portal.azure.com
    1. Use your MSDN account subscription...
    2. List subscriptions (https://portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade)
    3. Note the subscription name. You will need it below when setting the default subscription for our lab session.
  3. Log into you Azure account and set you default subscription
az login
az account set -s {Your subscription name or id}
az account show

Create k8s Cluster

  1. Create a lab resource group
az group create --name rg-kubernetes-training --location centralus
  1. Create your kubernetes cluster using AKS
az aks create --resource-group rg-kubernetes-training --name aks-k8s-training --node-count 2 
  1. Connect to your Kubernetes

Please note, you can get this command from the Azure Portal by looking at the AKS overview and clicking "Connect" at the top of page.

az aks get-credentials --resource-group rg-kubernetes-training --name aks-k8s-training
  1. Deploy a test pod
 kubectl apply -f test-pod.yaml

 # exec a shell process into the pod/container
 kubectl exec -it pod/echoserver /bin/bas
 > curl localhost:8080
 
 #Clean up!
kubectl delete -f test-pod.yaml

Exercises website

http://13.65.136.154:8890/

References and additional information

AKS Cluster Reference Links

AKS How to reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published