https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
AZ-104: Microsoft Azure Administrator
1
Session 2
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
AzureTalk Core Team
2
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Today’s Session Speaker
3
Girish Kalamati,
AzureTalk Core Team Member,
MCP, DevOps Consultant
Vipin Jha
AzureTalk Core Team
Member, Consultant, MCT
Niraj Kumar
AzureTalk Founder
Enterprise Architect, MCT
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
AZ-104: Skills Measured
• Manage Azure identities and governance (15-20%)
• Deploy and manage Azure compute resources (25-
30%)
• Implement and manage storage (10-15%)
• Configure and manage virtual networking (30-35%)
• Monitor and back up Azure resources (10-15%)
4
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Agenda
5
• App services
• Containerization(AKS)
• Container Registry
• Azure Container Instance
• Serverless Computing
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
If you know or used any of the below compute service
6
Serverless
Computing
Pre-Requisite
If not, no worries, relax We will try to explain
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
App Services
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
What is an App Service ?
8
• PaaS Offering for Web Apps
• Enables you to build and host web apps
• Mobile back ends, and RESTful APIs in the
programming language of your choice
• No need of managing infrastructure
• Offers auto-scaling and high availability
• Supports both Windows and Linux
• Automated deployments from GitHub, Azure
DevOps, or any Git repo
• Serverless code
• Security and compliance
Reference : Microsoft Docs
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
App Services
9
• Fully managed platform with built-in
infrastructure maintenance, security
patching, and scaling
• Built-in CI/CD integration and
supports zero-downtime deployments
• App service environment
• Rigorous security and compliance
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
App Service Plan
10
App
Service
Plan
App
Service
You cannot load more
Web Apps than the
actual server limit
Note: A single App Service Plan limits to : No. of VM instances, Size of CPU
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
App Services Plan
11
FREE SHARED BASIC STANDARD PREMIUM ISOLATED
Web, mobile or
API apps
10 100 Unlimited Unlimited Unlimited Unlimited
Disk space 1 GB 1 GB 10 GB 50 GB 250 GB 1 TB
instances – – Up to 3 Up to 10 Up to 30** Up to 100*
Custom domain – Supported Supported Supported Supported Supported
Auto Scale – – – Supported Supported Supported
VPN hybrid
connectivity
– – – Supported Supported Supported
Network
Isolation
Supported
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
What is scaling?
12
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Problems with Scale-UP
• Causes interruption in service
• Client-Apps might need to disconnect from the service
and reconnect
• New connections might be rejected until scaling finishes
• Scaling up can cause the Webapp outgoing IP address to
change
• Might require firewall changes
13
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 1
Can I choose between windows or Linux OS as host in
App Service ?
a) True
b) False
14
https://azureezy.com/q1
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 1
Can I choose between windows or Linux OS as host in
App Service ?
a) True
b) False
15
https://azureezy.com/q1
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Containerization
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Docker, Container and VM
17
Source : https://devopedia.org/docker
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Containers
18
• Portable unit of deployment
• Packs AppCode + dependencies
• Virtualization without need of total
VM
- Slice up the OS to run multiple apps
- Each container runs in isolated env,
but shares host kernel
• Runs one service per
container(Container and App share
lifecycle )
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Docker file Docker image
Containers
Docker build Docker run
Docker Image
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Why Docker?
20
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Why Docker…
21
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Life With Docker was easy ?
22Source : Google
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Container Orchestration
23
Source : Internet
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Container Registry
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Container Registry
25
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Container Registry tasks
26
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Container Registry Security
27
- Yes, You have granular control
- Sign Images to increase trust and protect from getting
corrupted
- Images are encrypted at rest
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Container Instance
28
• Fast startup: Launch containers in seconds
• Per second billing: Incur costs only while the container is
running
• Hypervisor-level security: Isolate your application completely
as it would be in a VM
• Custom sizes: Specify exact values for CPU cores and memory.
• Persistent storage: Mount Azure Files shares directly to a
container to retrieve and persist state
• Linux and Windows: Schedule both Windows and Linux
containers using the same API
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
ACI Limitations
29
Scenario where ACI may not help and you may need an
Orchestrator.
* Service discovery across multiple containers
* Automatic scaling
* Coordinated application upgrades
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 2
Where can I store/maintain my public docker images ?
a) Azure Container Registry
b) Docker Hub
30
https://azureezy.com/q2
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 2
Where can i store/maintain my public docker images ?
a) Azure Container Registry
b) Docker Hub
31
https://azureezy.com/q2
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 3
Azure Container Instances bills customer on ‘per second
billing’ basis. Is the statement true or false ?
a) True
b) False
32
https://azureezy.com/q3
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 3
Azure Container Instances bills customer on ‘per second
billing’ basis. Is the statement true or false ?
a) True
b) False
33
https://azureezy.com/q3
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Kubernetes Services
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Kubernetes(K8s)
35
Source: Google
• Has become de facto standard for Container-
Orchestration system
• Is becoming the Operating System for cloud
native world
• Automates deployment, scaling and operational
concerns of containerized workloads across
clusters of VM hosts
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Kubernetes Services
36
At no extra charges !
• Automated
upgrades, patches
• High Reliability,
Availability
• Automatic Scaling
• Self-Healing
• Monitoring
• Fully-managed Kubernetes platform hosted
in Azure as a PaaS service
• Deeply integrated with Azure Dev tools and
services
• Decreases the complexity and operational
overhead of managing k8s
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Kubernetes Cluster
37
• Orchestrators support cluster-based technology
• Pool of virtual machines(nodes)
• Highly-available environment
• Can scale from 0 to hundreds
• Nodes can be heterogeneous(SKU’s) and are aware
of other nodes in the pool
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
AKS Cluster provisioning
38
• Azure Portal
• Azure CLI
• Azure ARM Script
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
AKS Cluster Architecture
39Source: Microsoft docs
Entry point
for REST
commands
to Master-
Node
Deploys
Containers
across the
cluster
Key-Value
Data Store that
maintain the
cluster state
Virtual-Networking
is handled by
kube-proxy on
each node
Monitors
the Nodes
and PODs
Master-Node
manages the
entire
Cluster
Kubectl
Command-
Line Utility
to manage
the entire
cluster
(Replication,
Namespaces etc.)
Handles Routine
tasks in the cluster
allows containerized
applications to run and interact
with additional resources such
as the virtual network and
storage
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Deployment in AKS Cluster
40
Source: Microsoft Docs
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
PODS
41
Source: Google
• You never directly run a container instead you run a
POD
• Apps running in the same POD share same IP, PORT
etc.
• Pods are immutable – if you change a pod definition
it creates a new pod and delete the old
• The Smallest building blocks in Kubernetes
- Collection of co-located containers & volumes
- Running in the same exec environment
- Managed as a single atomic unit
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Types of Configuration!
42
Two types
• Declarative
• Imperative
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Configurations types
43
• Imperative configurations where you explicitly order
system what to do, by issuing series of commands.
• Kubernetes thrives on Declarative configurations
where you declare a configuration and service are
bound to come to that state. So k8s is more
manageable, dynamic & reliable.
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
POD Lifecycle
44Source: Microsoft
Kubectl
Instruct
Master to
provision 2
replicas of
PODs
Store POD
SPECS
Assign a
Node for
Each POD
PODs got
assigned
on each
NODES
Kubelet Verifies if there are
any assigned PODs with the
same name
Kube-Controller manager
verifies correct no. of
pods running in the
cluster
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Replica Sets
45
k8s object that manage PODs
- Redundancy: allow for failure
- Scale: allow for more requests to
be processed
• Monitor the cluster and ensure desired no. of PODs are
running (scale up or down and even destroy excess PODs)
• Created by using deployment objects
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Deployments
46
k8s object that control the
running state of PODs & Replica
Sets
- Instruct the k8s deployment
controller to create, scale and update
instances of the services.
- Fine grain access on PODs state
- To Delete set of PODs, delete deployment
- To Update set of PODs, update deployment definition
• K8s deployment controller reads the deployment
and schedules the service instances on Nodes in the
cluster
• Deployments operations are simple
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 4
Kubernetes configurations are ___________ ?
a) Imperative
b) Declarative
47
https://azureezy.com/q4
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 4
Kubernetes configurations are ___________ ?
a) Imperative
b) Declarative
48
https://azureezy.com/q4
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Serverless Computing
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Serverless computing
• Azure Functions
• Azure Logic Apps
• Azure Event Grid
50
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Function
51
• Serverless computing service
• Can write code in any language
• Enables user to run event-triggered
code without managing a physical
server beneath
• Scenarios:
- Decoupled architectures
- High-throughput (Processing 1 lakh
events per second)
- Reusability
- Shared Resource Usage
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Logic Apps
52
• Schedule, automate, and
orchestrate tasks, business
processes
• No need of writing a Code
• Build scalable solutions:
- App integration
- Data integration
- System integration
- Enterprise application integration
- business-to-business (B2B)
communication
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Azure Event Grid
53
• Simplifies event
management in building
event-driven apps and
serverless architectures
• Service which power
your event-driven and
serverless apps
• Routes events from any
source to any
destination
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 5
Which azure serverless computing service do not need
one to write Code rather than just mentioning a logic ?
a) Azure Logic Apps
b) Azure Event Grid
c) Azure Function
54
https://azureezy.com/q5
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Question 5
Which azure serverless computing service do not need
one to write Code rather than just mentioning a logic ?
a) Azure Logic Apps
b) Azure Event Grid
c) Azure Function
55
https://azureezy.com/q5
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Break
56
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Demo
• Lab 1: Containerized web app & Azure App Service
• Lab 2: App Service scale up and scale out
• Lab 3: Docker image & Azure Container Instance
• Lab 4: Azure Kubernetes Service cluster
• Lab 5: Azure Kubernetes Service cluster Pods
• Lab 6: Scale containerized workloads in AKS
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
Q & A
58
You can also tweet your question or queries at #TheAzureGuy007
https://azureezy.com
© 2020 AzureEzy and AzureTalk. All rights reserved!
59
https://bharatguru.in
https://azureezy.com
Thanks!
https://azureezy.com/az-104
https://t.me/AzureTalk
https://youtube.com/c/AzureTalk
https://www.linkedin.com/in/nirajkum/
https://www.linkedin.com/in/vipinkumarjha/
https://www.linkedin.com/in/girish-kalamati/
https://bit.ly/TheAzureGuy007
@TheAzureGuy007

Az 104 session 2 implement and manage azure webapps and container

  • 1.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! AZ-104: Microsoft Azure Administrator 1 Session 2
  • 2.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! AzureTalk Core Team 2
  • 3.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Today’s Session Speaker 3 Girish Kalamati, AzureTalk Core Team Member, MCP, DevOps Consultant Vipin Jha AzureTalk Core Team Member, Consultant, MCT Niraj Kumar AzureTalk Founder Enterprise Architect, MCT
  • 4.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! AZ-104: Skills Measured • Manage Azure identities and governance (15-20%) • Deploy and manage Azure compute resources (25- 30%) • Implement and manage storage (10-15%) • Configure and manage virtual networking (30-35%) • Monitor and back up Azure resources (10-15%) 4
  • 5.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Agenda 5 • App services • Containerization(AKS) • Container Registry • Azure Container Instance • Serverless Computing
  • 6.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! If you know or used any of the below compute service 6 Serverless Computing Pre-Requisite If not, no worries, relax We will try to explain
  • 7.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! App Services
  • 8.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! What is an App Service ? 8 • PaaS Offering for Web Apps • Enables you to build and host web apps • Mobile back ends, and RESTful APIs in the programming language of your choice • No need of managing infrastructure • Offers auto-scaling and high availability • Supports both Windows and Linux • Automated deployments from GitHub, Azure DevOps, or any Git repo • Serverless code • Security and compliance Reference : Microsoft Docs
  • 9.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! App Services 9 • Fully managed platform with built-in infrastructure maintenance, security patching, and scaling • Built-in CI/CD integration and supports zero-downtime deployments • App service environment • Rigorous security and compliance
  • 10.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! App Service Plan 10 App Service Plan App Service You cannot load more Web Apps than the actual server limit Note: A single App Service Plan limits to : No. of VM instances, Size of CPU
  • 11.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! App Services Plan 11 FREE SHARED BASIC STANDARD PREMIUM ISOLATED Web, mobile or API apps 10 100 Unlimited Unlimited Unlimited Unlimited Disk space 1 GB 1 GB 10 GB 50 GB 250 GB 1 TB instances – – Up to 3 Up to 10 Up to 30** Up to 100* Custom domain – Supported Supported Supported Supported Supported Auto Scale – – – Supported Supported Supported VPN hybrid connectivity – – – Supported Supported Supported Network Isolation Supported
  • 12.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! What is scaling? 12
  • 13.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Problems with Scale-UP • Causes interruption in service • Client-Apps might need to disconnect from the service and reconnect • New connections might be rejected until scaling finishes • Scaling up can cause the Webapp outgoing IP address to change • Might require firewall changes 13
  • 14.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 1 Can I choose between windows or Linux OS as host in App Service ? a) True b) False 14 https://azureezy.com/q1
  • 15.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 1 Can I choose between windows or Linux OS as host in App Service ? a) True b) False 15 https://azureezy.com/q1
  • 16.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Containerization
  • 17.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Docker, Container and VM 17 Source : https://devopedia.org/docker
  • 18.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Containers 18 • Portable unit of deployment • Packs AppCode + dependencies • Virtualization without need of total VM - Slice up the OS to run multiple apps - Each container runs in isolated env, but shares host kernel • Runs one service per container(Container and App share lifecycle )
  • 19.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Docker file Docker image Containers Docker build Docker run Docker Image
  • 20.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Why Docker? 20
  • 21.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Why Docker… 21
  • 22.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Life With Docker was easy ? 22Source : Google
  • 23.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Container Orchestration 23 Source : Internet
  • 24.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Container Registry
  • 25.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Container Registry 25
  • 26.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Container Registry tasks 26
  • 27.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Container Registry Security 27 - Yes, You have granular control - Sign Images to increase trust and protect from getting corrupted - Images are encrypted at rest
  • 28.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Container Instance 28 • Fast startup: Launch containers in seconds • Per second billing: Incur costs only while the container is running • Hypervisor-level security: Isolate your application completely as it would be in a VM • Custom sizes: Specify exact values for CPU cores and memory. • Persistent storage: Mount Azure Files shares directly to a container to retrieve and persist state • Linux and Windows: Schedule both Windows and Linux containers using the same API
  • 29.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! ACI Limitations 29 Scenario where ACI may not help and you may need an Orchestrator. * Service discovery across multiple containers * Automatic scaling * Coordinated application upgrades
  • 30.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 2 Where can I store/maintain my public docker images ? a) Azure Container Registry b) Docker Hub 30 https://azureezy.com/q2
  • 31.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 2 Where can i store/maintain my public docker images ? a) Azure Container Registry b) Docker Hub 31 https://azureezy.com/q2
  • 32.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 3 Azure Container Instances bills customer on ‘per second billing’ basis. Is the statement true or false ? a) True b) False 32 https://azureezy.com/q3
  • 33.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 3 Azure Container Instances bills customer on ‘per second billing’ basis. Is the statement true or false ? a) True b) False 33 https://azureezy.com/q3
  • 34.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Kubernetes Services
  • 35.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Kubernetes(K8s) 35 Source: Google • Has become de facto standard for Container- Orchestration system • Is becoming the Operating System for cloud native world • Automates deployment, scaling and operational concerns of containerized workloads across clusters of VM hosts
  • 36.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Kubernetes Services 36 At no extra charges ! • Automated upgrades, patches • High Reliability, Availability • Automatic Scaling • Self-Healing • Monitoring • Fully-managed Kubernetes platform hosted in Azure as a PaaS service • Deeply integrated with Azure Dev tools and services • Decreases the complexity and operational overhead of managing k8s
  • 37.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Kubernetes Cluster 37 • Orchestrators support cluster-based technology • Pool of virtual machines(nodes) • Highly-available environment • Can scale from 0 to hundreds • Nodes can be heterogeneous(SKU’s) and are aware of other nodes in the pool
  • 38.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! AKS Cluster provisioning 38 • Azure Portal • Azure CLI • Azure ARM Script
  • 39.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! AKS Cluster Architecture 39Source: Microsoft docs Entry point for REST commands to Master- Node Deploys Containers across the cluster Key-Value Data Store that maintain the cluster state Virtual-Networking is handled by kube-proxy on each node Monitors the Nodes and PODs Master-Node manages the entire Cluster Kubectl Command- Line Utility to manage the entire cluster (Replication, Namespaces etc.) Handles Routine tasks in the cluster allows containerized applications to run and interact with additional resources such as the virtual network and storage
  • 40.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Deployment in AKS Cluster 40 Source: Microsoft Docs
  • 41.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! PODS 41 Source: Google • You never directly run a container instead you run a POD • Apps running in the same POD share same IP, PORT etc. • Pods are immutable – if you change a pod definition it creates a new pod and delete the old • The Smallest building blocks in Kubernetes - Collection of co-located containers & volumes - Running in the same exec environment - Managed as a single atomic unit
  • 42.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Types of Configuration! 42 Two types • Declarative • Imperative
  • 43.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Configurations types 43 • Imperative configurations where you explicitly order system what to do, by issuing series of commands. • Kubernetes thrives on Declarative configurations where you declare a configuration and service are bound to come to that state. So k8s is more manageable, dynamic & reliable.
  • 44.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! POD Lifecycle 44Source: Microsoft Kubectl Instruct Master to provision 2 replicas of PODs Store POD SPECS Assign a Node for Each POD PODs got assigned on each NODES Kubelet Verifies if there are any assigned PODs with the same name Kube-Controller manager verifies correct no. of pods running in the cluster
  • 45.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Replica Sets 45 k8s object that manage PODs - Redundancy: allow for failure - Scale: allow for more requests to be processed • Monitor the cluster and ensure desired no. of PODs are running (scale up or down and even destroy excess PODs) • Created by using deployment objects
  • 46.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Deployments 46 k8s object that control the running state of PODs & Replica Sets - Instruct the k8s deployment controller to create, scale and update instances of the services. - Fine grain access on PODs state - To Delete set of PODs, delete deployment - To Update set of PODs, update deployment definition • K8s deployment controller reads the deployment and schedules the service instances on Nodes in the cluster • Deployments operations are simple
  • 47.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 4 Kubernetes configurations are ___________ ? a) Imperative b) Declarative 47 https://azureezy.com/q4
  • 48.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 4 Kubernetes configurations are ___________ ? a) Imperative b) Declarative 48 https://azureezy.com/q4
  • 49.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Serverless Computing
  • 50.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Serverless computing • Azure Functions • Azure Logic Apps • Azure Event Grid 50
  • 51.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Function 51 • Serverless computing service • Can write code in any language • Enables user to run event-triggered code without managing a physical server beneath • Scenarios: - Decoupled architectures - High-throughput (Processing 1 lakh events per second) - Reusability - Shared Resource Usage
  • 52.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Logic Apps 52 • Schedule, automate, and orchestrate tasks, business processes • No need of writing a Code • Build scalable solutions: - App integration - Data integration - System integration - Enterprise application integration - business-to-business (B2B) communication
  • 53.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Azure Event Grid 53 • Simplifies event management in building event-driven apps and serverless architectures • Service which power your event-driven and serverless apps • Routes events from any source to any destination
  • 54.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 5 Which azure serverless computing service do not need one to write Code rather than just mentioning a logic ? a) Azure Logic Apps b) Azure Event Grid c) Azure Function 54 https://azureezy.com/q5
  • 55.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Question 5 Which azure serverless computing service do not need one to write Code rather than just mentioning a logic ? a) Azure Logic Apps b) Azure Event Grid c) Azure Function 55 https://azureezy.com/q5
  • 56.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Break 56
  • 57.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Demo • Lab 1: Containerized web app & Azure App Service • Lab 2: App Service scale up and scale out • Lab 3: Docker image & Azure Container Instance • Lab 4: Azure Kubernetes Service cluster • Lab 5: Azure Kubernetes Service cluster Pods • Lab 6: Scale containerized workloads in AKS
  • 58.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! Q & A 58 You can also tweet your question or queries at #TheAzureGuy007
  • 59.
    https://azureezy.com © 2020 AzureEzyand AzureTalk. All rights reserved! 59 https://bharatguru.in https://azureezy.com Thanks! https://azureezy.com/az-104 https://t.me/AzureTalk https://youtube.com/c/AzureTalk https://www.linkedin.com/in/nirajkum/ https://www.linkedin.com/in/vipinkumarjha/ https://www.linkedin.com/in/girish-kalamati/ https://bit.ly/TheAzureGuy007 @TheAzureGuy007