Azure Kubernetes Service (AKS) - Part 3
Orchestration using Kubernetes
- Minikube
Nilesh Gule
$whoami
{
“name” :“Nilesh Gule”,
“title” :“Architect | Microsoft Azure MVP”,
“website” :“https://www.HandsOnArchitect.com",
“github” :“https://github.com/NileshGule"
“twitter” :“@nileshgule”,
“linkedin” :“https://www.linkedin.com/in/nileshgule”,
“email” :“nileshgule@gmail.com",
“likes” :“Technical Evangelism, Cricket”
}
AKS learning series
- Part 4 - Deploy Multi-
container apps to managed
Kubernetes with Azure
kubernetes Service (AKS)
- Part 5 - Debugging &
Monitoring AKS using OMS
- Part 6 - CI CD with Docker &
Kubernetes (Bonus)
- Part 1 - Getting started with
Docker
- Part 2 - Stitch Multi-container
apps with Docker Compose
- Part 3 - Container
Orchestration using
Kubernetes with Minikube
Application Overview
Recap - part 1 (Docker)
- https://www.youtube.com/watch?v=fQvmGm8Z85E
Recap - part 2 (Docker Compose)
- https://www.youtube.com/watch?v=crjRSvPVIlE
Container
Orchestration
Need for Orchestration
• Deploy Multi-container apps
• Scale containerized apps
• Roll out new versions of apps without
downtime
• Provide networking, service discovery and
storage
• Manage resources across multiple containers
• Self healing
DEMO



Minikube &
Kubectl
!9
Kubernetes
Open-source system for automating deployment, scaling, and
management of containerized application across clusters of
machines
Basic Objects
- Namespace
- Pod
- Volume
- Service
Controllers
- ReplicaSet
- Deployment
- StatefulSet
- DemonSet
Kubernetes - Pod
- Smallest unit of deployment
- Group of one or more
containers
- Contains specification how
to run container along with
its related resources
(storage / networking)
Kubernetes - Deployment
- Desired state definitions for pods and
replica sets
- Defines
- version of container images
- number of replicas
- update strategy
- Metadata to interact with resources
DEMO



Namespace,
Deployment
!13
Node 2
Kubernetes - Service
- Acts as Load Balancers for
pods
- Provides stable IP for
consumers
Node 1
TechTalksWeb
Pod1
TechTalksAPI
Pod2Pod1
Kubernetes - StatefulSet
- Use StatefulSets when data loss is unacceptable
- Useful when replicas are needed for availability
or scalability, and the replicas need stable
volume mounts across restarts
- Often used when deploying database workloads
that store their state on external storage providers
- With StatefulSets a crash of pod or cluster
does not result in data loss
Kubernetes Control plane
Kubectl commands
References 1/2
✴ Demo code - https://github.com/NileshGule/AKS-learning-series
✴ Kubernetes playground - https://labs.play-with-k8s.com
✴ Kubernetes objects on Azure - https://azure.microsoft.com/mediahandler/files/resourcefiles/243b3587-a5cd-4937-
b52a-dc5bdc8a78e7/Kubernetes-objects-on-Azure.pdf
✴ Kubernetes Theme park analogy - https://danlebrero.com/2018/07/09/kubernetes-explained-in-pictures-the-theme-
park-analogy/
✴ The Illustrated children’s guide to Kubernetes - https://cdn.chrisshort.net/The-Illustrated-Childrens-Guide-to-
Kubernetes.pdf
✴ Orchestrators - https://www.exoscale.com/syslog/container-orchestration/
✴ Twelve Factor App - https://12factor.net
✴ Kubernetes Basics - https://kubernetes.io/docs/tutorials/kubernetes-basics/
✴ Azure Kubernetes objects - https://msft.social/TIRUaN
✴ Kubernetes secrets - https://kubernetes.io/docs/concepts/configuration/secret/
✴ Highly scalable apps - https://www.handsonarchitect.com/2018/03/highly-scalable-multi-container-apps.html
✴
References 2/2
✴ Youtube Part 1 video - https://www.youtube.com/watch?v=fQvmGm8Z85E
✴ engineers.sg - https://engineers.sg/video/azure-container-service-aks-part-1-getting-started-with-docker-by-nilesh-
gule--2732
✴ Youtube Part 2 video - https://youtu.be/crjRSvPVIlE
✴ engineers.sg - https://www.engineers.sg/video/azure-kubernetes-service-aks-2-stitch-multi-container-apps-with-
docker-compose--2814
✴ Slide deck - Speakerdeck - https://speakerdeck.com/nileshgule/container-orchestration-using-kubernetes
✴ Slide deck - Slideshare - https://www.slideshare.net/nileshgule/azure-kubernetes-service-aks-part-3
✴
Thank you
very much
https://github.com/NileshGule/AKS-learning-series
Code with Passion and Strive for Excellence
Q&A
Feedback
http://bit.ly/AKSPart3

Azure kubernetes service (aks) part 3

  • 1.
    Azure Kubernetes Service(AKS) - Part 3 Orchestration using Kubernetes - Minikube Nilesh Gule
  • 2.
    $whoami { “name” :“Nilesh Gule”, “title”:“Architect | Microsoft Azure MVP”, “website” :“https://www.HandsOnArchitect.com", “github” :“https://github.com/NileshGule" “twitter” :“@nileshgule”, “linkedin” :“https://www.linkedin.com/in/nileshgule”, “email” :“nileshgule@gmail.com", “likes” :“Technical Evangelism, Cricket” }
  • 3.
    AKS learning series -Part 4 - Deploy Multi- container apps to managed Kubernetes with Azure kubernetes Service (AKS) - Part 5 - Debugging & Monitoring AKS using OMS - Part 6 - CI CD with Docker & Kubernetes (Bonus) - Part 1 - Getting started with Docker - Part 2 - Stitch Multi-container apps with Docker Compose - Part 3 - Container Orchestration using Kubernetes with Minikube
  • 4.
  • 5.
    Recap - part1 (Docker) - https://www.youtube.com/watch?v=fQvmGm8Z85E
  • 6.
    Recap - part2 (Docker Compose) - https://www.youtube.com/watch?v=crjRSvPVIlE
  • 7.
  • 8.
    Need for Orchestration •Deploy Multi-container apps • Scale containerized apps • Roll out new versions of apps without downtime • Provide networking, service discovery and storage • Manage resources across multiple containers • Self healing
  • 9.
  • 10.
    Kubernetes Open-source system forautomating deployment, scaling, and management of containerized application across clusters of machines Basic Objects - Namespace - Pod - Volume - Service Controllers - ReplicaSet - Deployment - StatefulSet - DemonSet
  • 11.
    Kubernetes - Pod -Smallest unit of deployment - Group of one or more containers - Contains specification how to run container along with its related resources (storage / networking)
  • 12.
    Kubernetes - Deployment -Desired state definitions for pods and replica sets - Defines - version of container images - number of replicas - update strategy - Metadata to interact with resources
  • 13.
  • 14.
    Node 2 Kubernetes -Service - Acts as Load Balancers for pods - Provides stable IP for consumers Node 1 TechTalksWeb Pod1 TechTalksAPI Pod2Pod1
  • 15.
    Kubernetes - StatefulSet -Use StatefulSets when data loss is unacceptable - Useful when replicas are needed for availability or scalability, and the replicas need stable volume mounts across restarts - Often used when deploying database workloads that store their state on external storage providers - With StatefulSets a crash of pod or cluster does not result in data loss
  • 16.
  • 17.
  • 18.
    References 1/2 ✴ Democode - https://github.com/NileshGule/AKS-learning-series ✴ Kubernetes playground - https://labs.play-with-k8s.com ✴ Kubernetes objects on Azure - https://azure.microsoft.com/mediahandler/files/resourcefiles/243b3587-a5cd-4937- b52a-dc5bdc8a78e7/Kubernetes-objects-on-Azure.pdf ✴ Kubernetes Theme park analogy - https://danlebrero.com/2018/07/09/kubernetes-explained-in-pictures-the-theme- park-analogy/ ✴ The Illustrated children’s guide to Kubernetes - https://cdn.chrisshort.net/The-Illustrated-Childrens-Guide-to- Kubernetes.pdf ✴ Orchestrators - https://www.exoscale.com/syslog/container-orchestration/ ✴ Twelve Factor App - https://12factor.net ✴ Kubernetes Basics - https://kubernetes.io/docs/tutorials/kubernetes-basics/ ✴ Azure Kubernetes objects - https://msft.social/TIRUaN ✴ Kubernetes secrets - https://kubernetes.io/docs/concepts/configuration/secret/ ✴ Highly scalable apps - https://www.handsonarchitect.com/2018/03/highly-scalable-multi-container-apps.html ✴
  • 19.
    References 2/2 ✴ YoutubePart 1 video - https://www.youtube.com/watch?v=fQvmGm8Z85E ✴ engineers.sg - https://engineers.sg/video/azure-container-service-aks-part-1-getting-started-with-docker-by-nilesh- gule--2732 ✴ Youtube Part 2 video - https://youtu.be/crjRSvPVIlE ✴ engineers.sg - https://www.engineers.sg/video/azure-kubernetes-service-aks-2-stitch-multi-container-apps-with- docker-compose--2814 ✴ Slide deck - Speakerdeck - https://speakerdeck.com/nileshgule/container-orchestration-using-kubernetes ✴ Slide deck - Slideshare - https://www.slideshare.net/nileshgule/azure-kubernetes-service-aks-part-3 ✴
  • 20.
  • 21.
  • 22.