This document summarizes Kubernetes and containers in Azure. It discusses Azure services that support containers like Azure Container Instances (ACI), Azure Container Registry, and Azure Container Service. It focuses on Azure Kubernetes Service (AKS) which provides a managed Kubernetes control plane. The agenda includes a demo of deploying a multi-container app to an AKS cluster. It provides commands for creating, getting credentials for, browsing, scaling, and upgrading an AKS cluster. Recommended tools and resources are also listed.
2. KARL OTS @ KOMPOZURE
• Cloud & cybersecurity consultant
• Patented inventor
• Co-organizer of Finland Azure User Group and IglooConf
• Podcast host at Cloud Gossip
• Working on Azure since 2011
Managing Consultant
karl.ots@kompozure.com
+358 50 480 1102
5. CONTAINERS IN AZURE
• Azure Container Instance
o Create a container from an Azure image without worrying about virtual machines underneath
o az container create --resource-group myResourceGroup --name mycontainer --image bitnami/nginx --cpu
1 --memory 1 --ip-address public --ports 80
o Use ACI as nodes in your Kubernetes with Virtual Kubelets
▪ https://github.com/virtual-kubelet/virtual-kubelet
• Azure Container Registry
o Store your Docker images in a private registry as a service
• Azure Container Service
o Create DC/OS, Swarm or Kubernetes cluster in Azure
6. AZURE KUBERNETES SERVICE (AKS)
• Kubernetes control plane as a service
o Master nodes managed by Microsoft
o Automatic upgrades
o Self-healing Masters
o Easy Cluster scaling
o Etcd SSD-backed with HA and backup/restore support
• Standard upstream Kuberenetes
8. AZ AKS COMMANDS
• az aks create
o -c == count of nodes / agents
▪ Default 3, minimum 1
o -k == kubernets version you want
o -s == node vm size (default standard ds1_v2)
o --ssh-key-value my public key
• az aks get-gredentials
o Retrieves kubeconfig info from cluster and appends into current local
kubeconfig
10. TOOLS
• az cli
• shell.azure.com
• VSCode
• VSCode extensions:
o vs-kubernetes
o vs-helm
11. RESOURCES
• Azure Container Service documentation
o https://github.com/Azure/acs-engine/blob/master/docs/kubernetes.md
• Azure Kubernetes Service Commands
o https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest
• Using ACI with Kubernetes
o https://azure.microsoft.com/en-gb/resources/videos/using-kubernetes-with-
azure-container-instances/
• All things Microsoft and Open Source
o https://open.microsoft.com/
• Podcast: Brendan Burns and Gabe Monroy on Impact and Future of Kubernetes
(KubeCon + CloudNativeCon 2017)
o https://changelog.com/podcast/282