Introduction of Kubernetes: Trang Nguyen Presentation
Introduction of Kubernetes: Trang Nguyen Presentation
KUBERNETES
TRANG NGUYEN PRESENTATION
Table of Contents
1 Introduction of Kubernetes 2 Kubernetes Component
o Before Kubernetes o What Kubernetes can do? o What is Kubelet?
o Roadmap to install
Nodes in Kubernetes
thing as microservices?
3
o Microservices Kubernetes
o What is a node in Kubernetes?
Architecture o Features of Kubernetes
o Master node
o Microservices o Kubernetes Architecture
o Worker node
Architecture – o Kubernetes vs Docker
Ecommerce Swarm 4 Kubernetes Development Process
o Container Architecture o Kubernetes 7 use cases o What is blue green deployment?
o Microservices use cases o Advantage of Kubernetes o How to automate the deployment?
o What is Kubernetes? o 30-60-90 day plan in
o Why organization should Kubernetes
5 Networking in Kubernetes
use Kubernetes? o Kubernetes networking model
2
o Before Kubernetes o What Kubernetes can do?
of
o Microservices Architecture – o Kubernetes vs Docker Swarm
Ecommerce o Kubernetes 7 use cases
Kubernetes o Container Architecture o Advantage of Kubernetes
o Microservices use cases o 30-60-90 day plan in Kubernetes
o What is Kubernetes?
3
Before Kubernetes
The slide covers the Architecture of
before and after Kubernetes introduction
App App App
5
Are Containers the Same Thing as Microservices?
6
Microservices Architecture
This slide is to highlight the Microservices Architecture of Containers
Microservices Architecture
Search
Payments
8
Container Architecture
This slide highlights the core Architecture of Containers and Applications hosted to the Docker Engine.
Docker Engine
Host Hardware
9
Microservices Use Cases
The slide covers the major microservices use cases such as user info microservices, most trending use cases and recommendations microservices.
UI Microservice
10
What is Kubernetes?
The slide shows the overview of Kubernetes.
Worker Nodes
KUBERNETES
kubelet
designed by Google
service
app
app
Control Plane
Container currently maintained by
External Runtime
API Server the Cloud Native
Request
Computing Foundation
etcd kubelet an open-source container
service
orchestration system
app
app
Container
help to automate
Scheduling Runtime
application deployment,
scaling, and management
Service Discovery
kubelet
service
app
app
Load Balancing Container
Runtime
11
Why Organization Should use Kubernetes?
The slide highlights the core reasons why organization should opt Kubernetes.
12
What Kubernetes can do?
Service discovery and load balancing Automatic bin packing
load balance and distribute the network traffic fit containers onto your nodes with CPU and
so that the deployment is stable. memory (RAM) predefined to make the best
use of your resources.
automatically, such as local storages, public containers, kills containers that don't respond
13
14
Container
Containers Containerizing image Infrastructure
runtime applications management provisioning Security
Kubernetes simply You have to package Kubernetes natively Kubernetes only Kubernetes can't
manages the the application into integrates with several manages the detect malware inside
containers once they containers, then give 3rd-party registries to workloads that run on container images or
are running. Kubernetes the automate storage or top of servers. alert you to
Kubernetes supports container images management of the Kubernetes can’t anomalous behavior.
a range of container you've built to deploy images. magically generate You need external
runtimes e.g. Docker them. more server tools to achieve these
resources. tasks.
Configure IP Tables
START
Install Docker & Configure
Disable SWAP
Install Kubeadm-
Kubelet & Kubectl
02 06
Service Discovery & Load Balancing Batch Execution
03 07
Storage Orchestration Horizontal Scaling
04 08
Self Healing Automatic Rollbacks & Rollouts
16
Kubernetes Architecture
CLI-
Command UI
Line
API
API Server
Scheduler Controllers
17
Kubernetes vs Docker Swarm
The slide provides the key difference between Kubernetes and Docker Swarm
05 Does not have as Much Experience with 05 Deployed at Scale more often among
Production Deployments at Scale Organizations
18
Kubernetes 7 use Cases
The slide contains the important 7 use cases of Kubernetes Cloud Native Network Functions
Managing containers with encapsulated
network functions (CNF initiatives)
04
Lift and Shift Machine Learning
Facilitating the moving of on-prem apps to Managing machine learning workflows to
the cloud 03 05 deploy faster AI-based apps
Microservices
Heavy Computing
Orchestrating complicated apps based on a 02 06 Enabling computing-heavy tasks
microservice architecture with many
components
CI/CD
Simple App
Learning how to get your app up and running 01 07 CI/CD tasks are easier to perform with
Kubernetes
by deploying it on a Kubernetes cluster
19
Advantages of Kubernetes
The slide highlights the major advantages of Kubernetes
30 60 90
Days Days Days
22
Kubernetes Components
The slide highlights the key components of Kubernetes
etcd
Kube-scheduler Kubernetes Nodes
23
What is Kubelet?
The slide shows the overview of Kubelet and explains its functionality
The kubelet is the primary "node agent" that runs on each node.
The kubelet works in terms of a PodSpec. A PodSpec is a YAML or JSON object that describes a pod. The kubelet takes a set
of PodSpecs that are provided through various mechanisms (primarily through the apiserver) and ensures that the
containers described in those PodSpecs are running and healthy. The kubelet doesn't manage containers which were not
created by Kubernetes.
24
What is Kubectl?
KUBECTL Kubernetes
KUBERNETES API
HTTP
The kubectl command line tool lets you control Kubernetes clusters.
For configuration, kubectl looks for a file named config in the $HOME/.kube directory.
For details about each command, including all the supported flags and subcommands, see the kubectl reference
documentation. For installation instructions see installing kubectl.
25
What is Kubeadm?
Master Node 1
kubernetes kubernetes
Docker Docker
Using kubeadm, you can create a minimum viable Kubernetes cluster that conforms to best practices.
In fact, you can use kubeadm to set up a cluster that will pass the Kubernetes Conformance tests. kubeadm also supports
other cluster lifecycle functions, such as bootstrap tokens and cluster upgrades.
26
3
oWhat is a node in Kubernetes?
Nodes in
oMaster node
Kubernetes
oWorker node
27
What is a Node in Kubernetes?
The slide provides the overview of nodes in Kubernetes
CLI-
Command UI A Master Node
Line is a node which controls and
manages a group of worker
nodes (workloads runtime)
API and resembles a cluster in
Kubernetes. All external
communication to the cluster
Key-Value Store Kubernetes Master is via the API-Server, Kube-
etcd
Controller-Manager, that runs
a group of controllers for the
API Server
running cluster.
Scheduler Controllers
29
Worker/Slave Node in Kubernetes
The slide highlights overview of Worker Node in Kubernetes and its functionality
External World
A Worker Node
It is a physical server otherwise
you will say a VM that runs the
applications victimization Pods
Kube-proxy (a pod programming unit) that
is controlled by the Master
Node.
On a physical server
POD POD (Worker/Slave Node), Pods
Kubelet area unit scheduled.
For accessing the applications
Container
POD from the external world, we
Runtime
have a tendency to connect
with nodes.
30
4
Kubernetes oWhat is blue green deployment?
Development oHow to automate the deployment?
Process
31
What is Blue Green Deployment?
The slide explains what is blue green deployment and its functionality
Test Automation
32
How to automate the deployment?
The slide highlights how to automate the deployment process
Docker Hub
HTTP Callback
deploys
Deployer
Container pipelines automate each of the stages in the container deployment process, from building the initial image to
deploying to production. Typically, the entire container pipeline consists of three stages:
Integration: changes are checked into source control, triggering the build process and unit tests.
Acceptance testing: the container is deployed to a test environment and verified for functionality.
Deployment: the final, fully-tested image is deployed to production.
33
5
Networking oKubernetes networking model
Kubernetes oIngress networking in Kubernetes
34
Kubernetes Networking Model
Internet
Internet to Kubernetes
Kubernetes Cluster
35
Ingress Networking in Kubernetes
The slide explains the Ingress Networking in Kubernetes and its working
eth0 eth0
Route Table
36
6
Security
Measures in oBest security measures in Kubernetes
Kubernetes
37
Best Security Measures in Kubernetes
The slide consists of the best Security measures which needs to follow in Kubernetes
40