SlideShare a Scribd company logo
1 of 32
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Topics For Today’s Session
❖ W h a t i s K u b e r n e t e s ?
❖ K u b e r n e t e s C l u s t e r
❖ K u b e r n e t e s N e t w o r k i n g
❖ N e t w o r k P l u g i n s
❖ C a s e S t u d y : W e a l t h W i z a r d s
❖ H a n d s - O n
Kubernetes Certification Training www.edureka.co/kubernetes-certification
What is Kubernetes & Who Uses it?
Open source and portable platform
Automates deployment of workloads
Groups containers for easy management
A container orchestration tool
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Kubernetes Cluster
A cluster is a foundation of Kubernetes Engine. It has various components such as worker nodes, API’s,
Kubelet processes, deployment files etc.
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Problems to Solve!!
Container-to-Container communication
Pod-to-Pod communication
Pod-to-Service communication
External-to-Service communication
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Requirements of Kubernetes Model
All containers can communicate with all other containers without NAT
The IP that a container sees itself as is the same IP that others see it as
All nodes can communicate with all containers (and vice-versa)
without NAT
Kubernetes model has few fundamental requirements for any networking implementation.
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Kubernetes Networking
Kubernetes is a powerful platform having many design choices and to understand the networking in
Kubernetes cluster, you need to understand the communication between pods, services and external world.
Container and Pods01
Services02
Ingress Network03
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Containers & Pods
Kubernetes Certification Training www.edureka.co/kubernetes-certification
What are Pods?
HOST
Eth0
10.100.0.2
Docker0
172.17.0.1
Container 1
Veth0
172.17.0.2
Container 2
Veth1
172.17.0.3
A pod consists of one or more containers that are collocated on the same host, and are configured to share a
network stack and other resources such as units.
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Pods: Virtual Network Interface
;
Docker can start a container and rather than creating a new virtual network interface for it, specify that
it shares an existing interface.
HOST
Eth0
10.100.0.2
Docker0
172.17.0.1
Container 1 Container 2
Veth0
172.17.0.2
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Pods: Pause
Suspends the current process until a signal is received. So, these containers do nothing at all except sleep until
Kubernetes sends them a signal.
HOST
Eth0
10.100.0.2
Container 1 Container 2
Pause
Veth0
172.17.0.2
Docker0
172.17.0.1
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Pod Network: Components
Root Network
eth0
Root Network
Namespace
Pod2
Network
Pod2
Network
eth0
Root Network
veth0 veth1
eth0
eth0
Pod Network
Namespace
Pod1
Network
eth0
Root Network
veth0
cbr0
veth1
eth0
Pod2
Network
eth0
Linux Network Bridge
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Pod Network: Intra – Node Communication
1
Pod1
Network
eth0
Root Network
veth0
cbr0
veth1
eth0
Pod2
Network
eth0
2 3
4Packet leaves Pod1 network and enters
root network at veth0
Discovers the destination using an
ARP request
Now, bridge knows where to
forward the packet.
Packet reaches veth1 and reaches Pod2
network
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Pod Network: Inter - Node Communication
1
2
3
4 5
6
7
8
Leaves Pod1
Network and
enters root
network
Packet crosses
the pipe-pair and
reaches pod4
Makes the ARP
request to find
the destination The bridge takes
the packet
Leaves the machine node1
Comes out
of cbr0 to the
main network
interface
The packet is
forwarded to
cbr0
Routes the packet to the node
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Services
Kubernetes Certification Training www.edureka.co/kubernetes-certification
• Must be durable and
resistant to failure.
• Must have a list of servers it
can forward to
• Must have some way of
knowing if a particular
server is healthy and able to
respond to requests
Clients Connecting to Proxy
Pod 1 Pod 2
Pod 3
Client connects to
proxy
Application
192.168.10.0
192.168.10.3
192.168.10.1 192.168.10.2
Kubernetes Certification Training www.edureka.co/kubernetes-certification
What is a Service?
A service is a type of Kubernetes resource that is configured to forward requests to a set of pods. Services
have an IP address and this IP address automatically routes to a healthy pod.
Node Node IP: 172.17.8.102
Service Domain Name: Service1
IP: 10.2.10.20
Port:9443
NodePort: 32001
Protocol: TCP
Pod 1 Pod 3
L1
L1
Pod 2
L1 L1
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Service Network
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Service Types
Cluster IP
• Exposes the service on a
cluster-internal IP.
• Makes the service only
reachable from within
the cluster.
• This is the
default Service Type
Node Port
• Exposes the service on
each Node’s IP at a
static port
• A Cluster IP service to
which Node Port service
will route, is
automatically created
Load Balancer
• Exposes the service
externally using a cloud
provider’s load
balancer.
• Services, to which the
external load balancer
will route, are
automatically created.
External Name
• Maps the service to the
contents of the External
Name field by returning
a CNAME record with its
value.
• No proxying of any kind
is set up.
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Service Types
Cluster IP
• Exposes the service on a
cluster-internal IP.
• Makes the service only
reachable from within
the cluster.
• This is the
default Service Type
Node Port
• Exposes the service on
each Node’s IP at a
static port
• A Cluster IP service to
which Node Port service
will route, is
automatically created
Load Balancer
• Exposes the service
externally using a cloud
provider’s load
balancer.
• Services, to which the
external load balancer
will route, are
automatically created.
External Name
• Maps the service to the
contents of the External
Name field by returning
a CNAME record with its
value.
• No proxying of any kind
is set up.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Ingress Network
Kubernetes Certification Training www.edureka.co/kubernetes-certification
What is Ingress Network?
A collection of rules that allow inbound connections, which can be configured to give services externally
through reachable URLs, load balance traffic, or by offering name-based virtual hosting.
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Ingress Network Working
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Network Plugins
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Case Study
CHALLENGES
✓ The policies that the company used are application-
oriented and can only evolve with the applications,
but, there was no component to enforce these
policies.
SOLUTION
✓ Use the network plugin creates a virtual network that
has a network policy controller to manage and enforce
the rules in Kubernetes. Not only this, but it also
connects Docker containers across multiple hosts and
enables their automatic discovery.
RESULT
✓ Manages inter-pod routing, has access to manipulate
the iptables rules. Implements the access restrictions
defined by the network policies.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Demo Time!!
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Hands-On
To deploy a multi-tier application over Kubernetes Networking, to show pod to pod communications, with
services.
Deployment
File
Pod 1:
Container
Image 1
Deployment
File
Pod 2:
Container
Image 1
Pod4
Network
Pod3
Network
eth0
Node2
Root Network
veth0
cbr0
veth1
eth0
eth0
Route Table
veth0
10.0.1.2
Server
Pod 1
Pod2
Network
Pod1
Network
eth0
Node1
Root Network
veth0
cbr0
veth1
eth0
eth0
flannel0
Pod4
Network
Pod3
Network
eth0
Node2
Root Network
veth0
cbr0
veth1
eth0
eth0
flannel0
Route Table
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Ingress
Ingress is the most
powerful way of
exposing service
01
02 04
03 05
It sits in front of
multiple services and
act as a ‘Smart
router’
Ingress is an API object that
manages external access to the
services in a cluster, usually HTTP
Services and pods
have IPs only routable
within the cluster
It acts like an entry
point to the
Kubernetes cluster
Kubernetes Certification Training www.edureka.co/kubernetes-certification
Window

More Related Content

What's hot

DevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesDevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesRonny Trommer
 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideBytemark
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesMichal Cwienczek
 
Kubernetes
KubernetesKubernetes
KubernetesHenry He
 
Kubernetes Architecture
 Kubernetes Architecture Kubernetes Architecture
Kubernetes ArchitectureKnoldus Inc.
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesRishabh Indoria
 
Introduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang NguyenIntroduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang NguyenTrang Nguyen
 
Deploy Application on Kubernetes
Deploy Application on KubernetesDeploy Application on Kubernetes
Deploy Application on KubernetesOpsta
 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to KubernetesImesh Gunaratne
 
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...Edureka!
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes IntroductionPeng Xiao
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive OverviewBob Killen
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesGabriel Carro
 

What's hot (20)

DevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesDevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to Kubernetes
 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes Architecture
 Kubernetes Architecture Kubernetes Architecture
Kubernetes Architecture
 
AKS
AKSAKS
AKS
 
Docker & kubernetes
Docker & kubernetesDocker & kubernetes
Docker & kubernetes
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Introduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang NguyenIntroduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang Nguyen
 
Deploy Application on Kubernetes
Deploy Application on KubernetesDeploy Application on Kubernetes
Deploy Application on Kubernetes
 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
 
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Kubernetes Security
Kubernetes SecurityKubernetes Security
Kubernetes Security
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Intro to kubernetes
Intro to kubernetesIntro to kubernetes
Intro to kubernetes
 

Similar to Kubernetes Networking | Kubernetes Services, Pods & Ingress Networks | Kubernetes Training | Edureka

Getting started with google kubernetes engine
Getting started with google kubernetes engineGetting started with google kubernetes engine
Getting started with google kubernetes engineShreya Pohekar
 
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + KubernetesDocker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + KubernetesThomas Barlow
 
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Develop and deploy Kubernetes  applications with Docker - IBM Index 2018Develop and deploy Kubernetes  applications with Docker - IBM Index 2018
Develop and deploy Kubernetes applications with Docker - IBM Index 2018Patrick Chanezon
 
KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptxRyuzaki360
 
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic
 
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMwareVMUG IT
 
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB201904_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019Kumton Suttiraksiri
 
oci-container-engine-oke-100.pdf
oci-container-engine-oke-100.pdfoci-container-engine-oke-100.pdf
oci-container-engine-oke-100.pdfNandiniSinghal16
 
Best online kubernetes course in H2KInfosys.pdf
Best online kubernetes course in H2KInfosys.pdfBest online kubernetes course in H2KInfosys.pdf
Best online kubernetes course in H2KInfosys.pdfabhayah2k
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetescsegayan
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledgeAnshikaNigam8
 
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...Jitendra Bafna
 
Kubernetes automation in production
Kubernetes automation in productionKubernetes automation in production
Kubernetes automation in productionPaul Bakker
 
prodops.io k8s presentation
prodops.io k8s presentationprodops.io k8s presentation
prodops.io k8s presentationProdops.io
 
Kubernetes in the wild
Kubernetes in the wildKubernetes in the wild
Kubernetes in the wildsection_io
 

Similar to Kubernetes Networking | Kubernetes Services, Pods & Ingress Networks | Kubernetes Training | Edureka (20)

Getting started with google kubernetes engine
Getting started with google kubernetes engineGetting started with google kubernetes engine
Getting started with google kubernetes engine
 
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + KubernetesDocker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
 
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Develop and deploy Kubernetes  applications with Docker - IBM Index 2018Develop and deploy Kubernetes  applications with Docker - IBM Index 2018
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
 
KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptx
 
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
 
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
 
Meetup 2023 - Gateway API.pdf
Meetup 2023 - Gateway API.pdfMeetup 2023 - Gateway API.pdf
Meetup 2023 - Gateway API.pdf
 
Kubernetes-Meetup
Kubernetes-MeetupKubernetes-Meetup
Kubernetes-Meetup
 
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB201904_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
oci-container-engine-oke-100.pdf
oci-container-engine-oke-100.pdfoci-container-engine-oke-100.pdf
oci-container-engine-oke-100.pdf
 
Best online kubernetes course in H2KInfosys.pdf
Best online kubernetes course in H2KInfosys.pdfBest online kubernetes course in H2KInfosys.pdf
Best online kubernetes course in H2KInfosys.pdf
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledge
 
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
 
Kubernetes automation in production
Kubernetes automation in productionKubernetes automation in production
Kubernetes automation in production
 
Kubernetes networks
Kubernetes networksKubernetes networks
Kubernetes networks
 
prodops.io k8s presentation
prodops.io k8s presentationprodops.io k8s presentation
prodops.io k8s presentation
 
Kubernetes in the wild
Kubernetes in the wildKubernetes in the wild
Kubernetes in the wild
 

More from Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Recently uploaded

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

Kubernetes Networking | Kubernetes Services, Pods & Ingress Networks | Kubernetes Training | Edureka

  • 1.
  • 2. Kubernetes Certification Training www.edureka.co/kubernetes-certification Topics For Today’s Session ❖ W h a t i s K u b e r n e t e s ? ❖ K u b e r n e t e s C l u s t e r ❖ K u b e r n e t e s N e t w o r k i n g ❖ N e t w o r k P l u g i n s ❖ C a s e S t u d y : W e a l t h W i z a r d s ❖ H a n d s - O n
  • 3. Kubernetes Certification Training www.edureka.co/kubernetes-certification What is Kubernetes & Who Uses it? Open source and portable platform Automates deployment of workloads Groups containers for easy management A container orchestration tool
  • 4. Kubernetes Certification Training www.edureka.co/kubernetes-certification Kubernetes Cluster A cluster is a foundation of Kubernetes Engine. It has various components such as worker nodes, API’s, Kubelet processes, deployment files etc.
  • 5. Kubernetes Certification Training www.edureka.co/kubernetes-certification Problems to Solve!! Container-to-Container communication Pod-to-Pod communication Pod-to-Service communication External-to-Service communication
  • 6. Kubernetes Certification Training www.edureka.co/kubernetes-certification Requirements of Kubernetes Model All containers can communicate with all other containers without NAT The IP that a container sees itself as is the same IP that others see it as All nodes can communicate with all containers (and vice-versa) without NAT Kubernetes model has few fundamental requirements for any networking implementation.
  • 7. Kubernetes Certification Training www.edureka.co/kubernetes-certification Kubernetes Networking Kubernetes is a powerful platform having many design choices and to understand the networking in Kubernetes cluster, you need to understand the communication between pods, services and external world. Container and Pods01 Services02 Ingress Network03
  • 8. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Containers & Pods
  • 9. Kubernetes Certification Training www.edureka.co/kubernetes-certification What are Pods? HOST Eth0 10.100.0.2 Docker0 172.17.0.1 Container 1 Veth0 172.17.0.2 Container 2 Veth1 172.17.0.3 A pod consists of one or more containers that are collocated on the same host, and are configured to share a network stack and other resources such as units.
  • 10. Kubernetes Certification Training www.edureka.co/kubernetes-certification Pods: Virtual Network Interface ; Docker can start a container and rather than creating a new virtual network interface for it, specify that it shares an existing interface. HOST Eth0 10.100.0.2 Docker0 172.17.0.1 Container 1 Container 2 Veth0 172.17.0.2
  • 11. Kubernetes Certification Training www.edureka.co/kubernetes-certification Pods: Pause Suspends the current process until a signal is received. So, these containers do nothing at all except sleep until Kubernetes sends them a signal. HOST Eth0 10.100.0.2 Container 1 Container 2 Pause Veth0 172.17.0.2 Docker0 172.17.0.1
  • 12. Kubernetes Certification Training www.edureka.co/kubernetes-certification Pod Network: Components Root Network eth0 Root Network Namespace Pod2 Network Pod2 Network eth0 Root Network veth0 veth1 eth0 eth0 Pod Network Namespace Pod1 Network eth0 Root Network veth0 cbr0 veth1 eth0 Pod2 Network eth0 Linux Network Bridge
  • 13. Kubernetes Certification Training www.edureka.co/kubernetes-certification Pod Network: Intra – Node Communication 1 Pod1 Network eth0 Root Network veth0 cbr0 veth1 eth0 Pod2 Network eth0 2 3 4Packet leaves Pod1 network and enters root network at veth0 Discovers the destination using an ARP request Now, bridge knows where to forward the packet. Packet reaches veth1 and reaches Pod2 network
  • 14. Kubernetes Certification Training www.edureka.co/kubernetes-certification Pod Network: Inter - Node Communication 1 2 3 4 5 6 7 8 Leaves Pod1 Network and enters root network Packet crosses the pipe-pair and reaches pod4 Makes the ARP request to find the destination The bridge takes the packet Leaves the machine node1 Comes out of cbr0 to the main network interface The packet is forwarded to cbr0 Routes the packet to the node
  • 15. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Services
  • 16. Kubernetes Certification Training www.edureka.co/kubernetes-certification • Must be durable and resistant to failure. • Must have a list of servers it can forward to • Must have some way of knowing if a particular server is healthy and able to respond to requests Clients Connecting to Proxy Pod 1 Pod 2 Pod 3 Client connects to proxy Application 192.168.10.0 192.168.10.3 192.168.10.1 192.168.10.2
  • 17. Kubernetes Certification Training www.edureka.co/kubernetes-certification What is a Service? A service is a type of Kubernetes resource that is configured to forward requests to a set of pods. Services have an IP address and this IP address automatically routes to a healthy pod. Node Node IP: 172.17.8.102 Service Domain Name: Service1 IP: 10.2.10.20 Port:9443 NodePort: 32001 Protocol: TCP Pod 1 Pod 3 L1 L1 Pod 2 L1 L1
  • 18. Kubernetes Certification Training www.edureka.co/kubernetes-certification Service Network
  • 19. Kubernetes Certification Training www.edureka.co/kubernetes-certification Service Types Cluster IP • Exposes the service on a cluster-internal IP. • Makes the service only reachable from within the cluster. • This is the default Service Type Node Port • Exposes the service on each Node’s IP at a static port • A Cluster IP service to which Node Port service will route, is automatically created Load Balancer • Exposes the service externally using a cloud provider’s load balancer. • Services, to which the external load balancer will route, are automatically created. External Name • Maps the service to the contents of the External Name field by returning a CNAME record with its value. • No proxying of any kind is set up.
  • 20. Kubernetes Certification Training www.edureka.co/kubernetes-certification Service Types Cluster IP • Exposes the service on a cluster-internal IP. • Makes the service only reachable from within the cluster. • This is the default Service Type Node Port • Exposes the service on each Node’s IP at a static port • A Cluster IP service to which Node Port service will route, is automatically created Load Balancer • Exposes the service externally using a cloud provider’s load balancer. • Services, to which the external load balancer will route, are automatically created. External Name • Maps the service to the contents of the External Name field by returning a CNAME record with its value. • No proxying of any kind is set up.
  • 21. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Ingress Network
  • 22. Kubernetes Certification Training www.edureka.co/kubernetes-certification What is Ingress Network? A collection of rules that allow inbound connections, which can be configured to give services externally through reachable URLs, load balance traffic, or by offering name-based virtual hosting.
  • 23. Kubernetes Certification Training www.edureka.co/kubernetes-certification Ingress Network Working
  • 24. Kubernetes Certification Training www.edureka.co/kubernetes-certification Network Plugins
  • 25. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Case Study
  • 26. CHALLENGES ✓ The policies that the company used are application- oriented and can only evolve with the applications, but, there was no component to enforce these policies. SOLUTION ✓ Use the network plugin creates a virtual network that has a network policy controller to manage and enforce the rules in Kubernetes. Not only this, but it also connects Docker containers across multiple hosts and enables their automatic discovery. RESULT ✓ Manages inter-pod routing, has access to manipulate the iptables rules. Implements the access restrictions defined by the network policies.
  • 27. Copyright © 2018, edureka and/or its affiliates. All rights reserved. Demo Time!!
  • 28. Kubernetes Certification Training www.edureka.co/kubernetes-certification Hands-On To deploy a multi-tier application over Kubernetes Networking, to show pod to pod communications, with services. Deployment File Pod 1: Container Image 1 Deployment File Pod 2: Container Image 1
  • 29.
  • 30. Pod4 Network Pod3 Network eth0 Node2 Root Network veth0 cbr0 veth1 eth0 eth0 Route Table veth0 10.0.1.2 Server Pod 1 Pod2 Network Pod1 Network eth0 Node1 Root Network veth0 cbr0 veth1 eth0 eth0 flannel0 Pod4 Network Pod3 Network eth0 Node2 Root Network veth0 cbr0 veth1 eth0 eth0 flannel0 Route Table
  • 31. Kubernetes Certification Training www.edureka.co/kubernetes-certification Ingress Ingress is the most powerful way of exposing service 01 02 04 03 05 It sits in front of multiple services and act as a ‘Smart router’ Ingress is an API object that manages external access to the services in a cluster, usually HTTP Services and pods have IPs only routable within the cluster It acts like an entry point to the Kubernetes cluster
  • 32. Kubernetes Certification Training www.edureka.co/kubernetes-certification Window