SlideShare a Scribd company logo
1 of 23
Kubernetes 101
Agenda
Why Kubernetes??
Introduction to Kubernetes
Kubernetes Components
Kubernetes Basic Concepts
Conclusion & Questions
2
Why Kubernetes?
Linux Kernel 4.2
Linux “Container” Host
Linux Kernel 4.2
Management & User-space Tools
(Libraries, Additional Software, & Docs)
Configuration | Application SW
App
Process 1
App
Process 2
App
Process n
Container 1
Standard Linux Host
Docker
Engine
Photon OS
Tools,
Libs, SW
Container image built w/Dockerfile
Container n
Tools,
Libs, SW
#docker run containerimage
Why Use Containers?
4
Challenges with Containers
5
CONTAINERS IN
DEVELOPMENT
CONTAINERS IN
PRODUCTION
THE
“LEARNING
CLIFF”
Load Balancing
Security
High Availability
Application Updates
Scaling up/down
Repeatable Deployments
Replication
Scheduling
Containers
Containers
Movement from Monolithic to Microservice Architecture
6
Developer pushes to git repository
GitHub Webhook
Triggers Jenkins
Jenkins copies GitHub Repo
• Dockerfile
• App code
• Test code
Jenkins has Docker build
an image based on the
Dockerfile
Jenkins Deploys the container
with the application code
and desired tests are executed
Introduction to Kubernetes
What is Kubernetes (K8s)
8
• Kubernetes, is an open-source platform for managing, automating deployment, scaling, and
operating containerized applications across a cluster of worker nodes.
Capabilities:
• Deploy your applications quickly and
predictably
• Scale your applications on the fly
• Seamlessly roll out new features
• Optimize use of your hardware by using only
the resources you need
Role:
• K8s sits in the Container as a Service (CaaS)
or Container orchestration layer
K8s introduces a lot new concepts
9
• 10,000 ft. View
K8s Cluster 1
Worker node 1
Worker node 2
Worker node 3
MastervCenter
Pod 1 Pod 2
Pod 3 Pod 4
Pod 5 Pod 6
ESXi 1
ESXi 2
ESXi 3
VM 1 VM 2
VM 3 VM 4
VM 5 VM 6
• Cluster
• Master
• Workers (nodes)
• Pods
• Cluster
• vCenter
• ESXi (Hosts)
• VMs
Kubernetes Core Components
K8s Cluster
• Consists of a master and a group of
worker nodes
• Namespaces
– Mechanism to partition resources into
logically named groups
11
K8s Cluster 1
Worker node 1
Worker node 2
Worker node 3
Master
K8s Master
• API Server
• Scheduler
• Dashboard (UI)
• Controller Manager
– Replication Controller
12
K8s Cluster 1
Worker node 1
Worker node 3
Master Worker node 2
Master
Dashboard (UI)
API Server
Scheduler
Controller
Manager
K8s Worker Node
• Kubelet
– Is an agent on the Nodes is watching
for ‘PodSpecs’ to determine what it is
supposed to run
• Kube-Proxy
– Is a daemon watching the K8s
‘services’ on the API Server and
implements east/west load-balancing
on the nodes using NAT in IPTables
• Container Runtime
– Docker
– Rkt
13
K8s Cluster 1
Worker node 1
Worker node 2
Worker node 3
Master
Worker node 1
Kubelet Kube-Proxy
Container
Runtime
K8s etcd
• Used as the distributed key-value store of Kubernetes
• Stores configuration data that can be used by each of
the nodes in the cluster
• Can be distributed across multiple nodes
• Used for service discovery
• Represents the state of the cluster that each
component can reference to configure or reconfigure
themselves
14
Key-Value
Store
Kubernetes Basic Concepts
Pods
• A pod (as in a pod of whales or pea pod) is a
group of one or more containers
• Containers within a pod share an IP address
and port space, and can find each other via
localhost
• Containers in a Pod also share the same data
volumes
• Pods are considered to be ephemeral
16
Pod 1
Container 1
Tools,
Libs, SW
Container 2
Tools,
Libs, SW
Pod 2
Container 1
Tools,
Libs, SW
Container 2
Tools,
Libs, SW
Labels
• A Label is a key/value pair attached to
Pods and convey user-defined
attributes.
• You can then use label selectors to
select Pods with particular Labels and
apply Services or Replication
Controllers to them.
• Labels can be attached to objects at
creation time and subsequently added
and modified at any time
17
Pod 1
Container 1
Tools,
Libs, SW
Container 2
Tools,
Libs, SW
Pod 2
Container 1
Tools,
Libs, SW
Container 2
Tools,
Libs, SW
Labels:
tier=frontend,
app=myapp
Labels:
tier=backend,
app=myapp
Persistent Volume Claim
Pool of Persistent Volumes
VSAN VMFS NFS
Cloud
Admin
Developer
• Provisioning
• Registers PVs in a
Pool
• Reclamation
• Request Volume Claim
• Releasing Volume
Claim
Developer Owned
Kubernetes Cluster
AdministratorOwned
Worker
Claim Pod
18
Services
• Services Types
– ClusterIP
– NodePort
– Loadbalancer
• Service Discovery
– DNS
– Environmental variables
19
Worker Node
Service
Pod 1 Pod 2 Pod N
Node IP:
192.168.10.10
IP: 10.2.3.14
DNS: service1.cluster.local
Port: 9443
NodePort: 31233
Protocol: TCP
Port: 9443
K8s Cluster 1
ReplicaSet.yaml
ContainerImage1
Replicas: 3
ContainerImage2
Replicas: 2
Replication Controller
• Features for replicating Pods
– Auto-healing
– Manual Scaling
– Rolling Updates
– Multiple Release Tracks
20
Worker
(Container Host)
P1R1
Worker
(Container Host)
P1R2 P2R1 P1R1
P2R1
Worker
(Container Host)
P1R3 P2R2 P2R2
MasterAPI
K
K
K
Deployment_Y.yaml
ContainerImage1
Replicas: 1
ContainerImage2
Replicas: 2
P1R1
P1R2
P2R1
StatefulSet
• The way of launching ordered replica’s of
Pods.
• Enables running pods in “clustered mode”
– Master/Slave applications
• Valuable for applications that require:
– Stable and unique network identifiers
– Stable persistent storage
– Ordered deployment and scaling
• Headless service required
• Examples
– Zookeeper, Cassandra, etcd, MySQL, etc
21
Pod 1 Pod 2 Pod 3
Pod 1 Pod 2 Pod 3
Creates Pods in sequence
Deletes Pods in reverse sequence
K8s Cluster 1
DaemonSet1.yaml
DaemonSet
• Runs a copy of a Pod on every
node in the cluster
• Newly created nodes automatically
get the DaemonSet Pod(s)
• When a node is removed a
DaemonSet doesn’t get
rescheduled
22
Worker1
Pod1
Worker2
Pod2
Worker3
Pod3
MasterAPI
K
K
K
23
Thank you!

More Related Content

What's hot

What's hot (20)

Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)
 
DevOps with Kubernetes
DevOps with KubernetesDevOps with Kubernetes
DevOps with Kubernetes
 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
 
Kubernetes Networking 101
Kubernetes Networking 101Kubernetes Networking 101
Kubernetes Networking 101
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Kubernetes Workshop
Kubernetes WorkshopKubernetes Workshop
Kubernetes Workshop
 
Kubernetes 101 for Beginners
Kubernetes 101 for BeginnersKubernetes 101 for Beginners
Kubernetes 101 for Beginners
 
Kubernetes Deployment Strategies
Kubernetes Deployment StrategiesKubernetes Deployment Strategies
Kubernetes Deployment Strategies
 
The what, why and how of knative
The what, why and how of knativeThe what, why and how of knative
The what, why and how of knative
 
Kubernetes Architecture
 Kubernetes Architecture Kubernetes Architecture
Kubernetes Architecture
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
 
Autoscaling Kubernetes
Autoscaling KubernetesAutoscaling Kubernetes
Autoscaling Kubernetes
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Kubernetes - introduction
Kubernetes - introductionKubernetes - introduction
Kubernetes - introduction
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
 
Intro to Kubernetes
Intro to KubernetesIntro to Kubernetes
Intro to Kubernetes
 

Similar to Kubernetes overview 101

How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
Shikha Srivastava
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
Stfalcon Meetups
 

Similar to Kubernetes overview 101 (20)

Kubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-HassanKubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-Hassan
 
Introducing Kubernetes
Introducing Kubernetes Introducing Kubernetes
Introducing Kubernetes
 
Kubernetes Introduction & Whats new in Kubernetes 1.6
Kubernetes Introduction & Whats new in Kubernetes 1.6Kubernetes Introduction & Whats new in Kubernetes 1.6
Kubernetes Introduction & Whats new in Kubernetes 1.6
 
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 RaleighKube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Openshift Workshop
Openshift Workshop Openshift Workshop
Openshift Workshop
 
Simplify Your Way To Expert Kubernetes Management
Simplify Your Way To Expert Kubernetes ManagementSimplify Your Way To Expert Kubernetes Management
Simplify Your Way To Expert Kubernetes Management
 
Kubernetes integration with ODL
Kubernetes integration with ODLKubernetes integration with ODL
Kubernetes integration with ODL
 
DevOps in AWS with Kubernetes
DevOps in AWS with KubernetesDevOps in AWS with Kubernetes
DevOps in AWS with Kubernetes
 
An Introduction to Kubernetes and Continuous Delivery Fundamentals
An Introduction to Kubernetes and Continuous Delivery FundamentalsAn Introduction to Kubernetes and Continuous Delivery Fundamentals
An Introduction to Kubernetes and Continuous Delivery Fundamentals
 
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
 
How kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updatedHow kubernetes operators can rescue dev secops in midst of a pandemic updated
How kubernetes operators can rescue dev secops in midst of a pandemic updated
 
01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
 
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
Room 2 - 6 - Đinh Tuấn Phong - Migrate opensource database to Kubernetes easi...
 
Kubernetes overview and Exploitation
Kubernetes overview and ExploitationKubernetes overview and Exploitation
Kubernetes overview and Exploitation
 
Kubernetes-Meetup
Kubernetes-MeetupKubernetes-Meetup
Kubernetes-Meetup
 
What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...
What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...
What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Docker kubernetes fundamental(pod_service)_190307
Docker kubernetes fundamental(pod_service)_190307Docker kubernetes fundamental(pod_service)_190307
Docker kubernetes fundamental(pod_service)_190307
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Kubernetes overview 101

  • 2. Agenda Why Kubernetes?? Introduction to Kubernetes Kubernetes Components Kubernetes Basic Concepts Conclusion & Questions 2
  • 4. Linux Kernel 4.2 Linux “Container” Host Linux Kernel 4.2 Management & User-space Tools (Libraries, Additional Software, & Docs) Configuration | Application SW App Process 1 App Process 2 App Process n Container 1 Standard Linux Host Docker Engine Photon OS Tools, Libs, SW Container image built w/Dockerfile Container n Tools, Libs, SW #docker run containerimage Why Use Containers? 4
  • 5. Challenges with Containers 5 CONTAINERS IN DEVELOPMENT CONTAINERS IN PRODUCTION THE “LEARNING CLIFF” Load Balancing Security High Availability Application Updates Scaling up/down Repeatable Deployments Replication Scheduling Containers Containers
  • 6. Movement from Monolithic to Microservice Architecture 6 Developer pushes to git repository GitHub Webhook Triggers Jenkins Jenkins copies GitHub Repo • Dockerfile • App code • Test code Jenkins has Docker build an image based on the Dockerfile Jenkins Deploys the container with the application code and desired tests are executed
  • 8. What is Kubernetes (K8s) 8 • Kubernetes, is an open-source platform for managing, automating deployment, scaling, and operating containerized applications across a cluster of worker nodes. Capabilities: • Deploy your applications quickly and predictably • Scale your applications on the fly • Seamlessly roll out new features • Optimize use of your hardware by using only the resources you need Role: • K8s sits in the Container as a Service (CaaS) or Container orchestration layer
  • 9. K8s introduces a lot new concepts 9 • 10,000 ft. View K8s Cluster 1 Worker node 1 Worker node 2 Worker node 3 MastervCenter Pod 1 Pod 2 Pod 3 Pod 4 Pod 5 Pod 6 ESXi 1 ESXi 2 ESXi 3 VM 1 VM 2 VM 3 VM 4 VM 5 VM 6 • Cluster • Master • Workers (nodes) • Pods • Cluster • vCenter • ESXi (Hosts) • VMs
  • 11. K8s Cluster • Consists of a master and a group of worker nodes • Namespaces – Mechanism to partition resources into logically named groups 11 K8s Cluster 1 Worker node 1 Worker node 2 Worker node 3 Master
  • 12. K8s Master • API Server • Scheduler • Dashboard (UI) • Controller Manager – Replication Controller 12 K8s Cluster 1 Worker node 1 Worker node 3 Master Worker node 2 Master Dashboard (UI) API Server Scheduler Controller Manager
  • 13. K8s Worker Node • Kubelet – Is an agent on the Nodes is watching for ‘PodSpecs’ to determine what it is supposed to run • Kube-Proxy – Is a daemon watching the K8s ‘services’ on the API Server and implements east/west load-balancing on the nodes using NAT in IPTables • Container Runtime – Docker – Rkt 13 K8s Cluster 1 Worker node 1 Worker node 2 Worker node 3 Master Worker node 1 Kubelet Kube-Proxy Container Runtime
  • 14. K8s etcd • Used as the distributed key-value store of Kubernetes • Stores configuration data that can be used by each of the nodes in the cluster • Can be distributed across multiple nodes • Used for service discovery • Represents the state of the cluster that each component can reference to configure or reconfigure themselves 14 Key-Value Store
  • 16. Pods • A pod (as in a pod of whales or pea pod) is a group of one or more containers • Containers within a pod share an IP address and port space, and can find each other via localhost • Containers in a Pod also share the same data volumes • Pods are considered to be ephemeral 16 Pod 1 Container 1 Tools, Libs, SW Container 2 Tools, Libs, SW Pod 2 Container 1 Tools, Libs, SW Container 2 Tools, Libs, SW
  • 17. Labels • A Label is a key/value pair attached to Pods and convey user-defined attributes. • You can then use label selectors to select Pods with particular Labels and apply Services or Replication Controllers to them. • Labels can be attached to objects at creation time and subsequently added and modified at any time 17 Pod 1 Container 1 Tools, Libs, SW Container 2 Tools, Libs, SW Pod 2 Container 1 Tools, Libs, SW Container 2 Tools, Libs, SW Labels: tier=frontend, app=myapp Labels: tier=backend, app=myapp
  • 18. Persistent Volume Claim Pool of Persistent Volumes VSAN VMFS NFS Cloud Admin Developer • Provisioning • Registers PVs in a Pool • Reclamation • Request Volume Claim • Releasing Volume Claim Developer Owned Kubernetes Cluster AdministratorOwned Worker Claim Pod 18
  • 19. Services • Services Types – ClusterIP – NodePort – Loadbalancer • Service Discovery – DNS – Environmental variables 19 Worker Node Service Pod 1 Pod 2 Pod N Node IP: 192.168.10.10 IP: 10.2.3.14 DNS: service1.cluster.local Port: 9443 NodePort: 31233 Protocol: TCP Port: 9443
  • 20. K8s Cluster 1 ReplicaSet.yaml ContainerImage1 Replicas: 3 ContainerImage2 Replicas: 2 Replication Controller • Features for replicating Pods – Auto-healing – Manual Scaling – Rolling Updates – Multiple Release Tracks 20 Worker (Container Host) P1R1 Worker (Container Host) P1R2 P2R1 P1R1 P2R1 Worker (Container Host) P1R3 P2R2 P2R2 MasterAPI K K K Deployment_Y.yaml ContainerImage1 Replicas: 1 ContainerImage2 Replicas: 2 P1R1 P1R2 P2R1
  • 21. StatefulSet • The way of launching ordered replica’s of Pods. • Enables running pods in “clustered mode” – Master/Slave applications • Valuable for applications that require: – Stable and unique network identifiers – Stable persistent storage – Ordered deployment and scaling • Headless service required • Examples – Zookeeper, Cassandra, etcd, MySQL, etc 21 Pod 1 Pod 2 Pod 3 Pod 1 Pod 2 Pod 3 Creates Pods in sequence Deletes Pods in reverse sequence
  • 22. K8s Cluster 1 DaemonSet1.yaml DaemonSet • Runs a copy of a Pod on every node in the cluster • Newly created nodes automatically get the DaemonSet Pod(s) • When a node is removed a DaemonSet doesn’t get rescheduled 22 Worker1 Pod1 Worker2 Pod2 Worker3 Pod3 MasterAPI K K K

Editor's Notes

  1. Application-centric management Raises the lvel of abstraction from running an OS Continuous development, integration, and deployment Loosely coupled, distributed, elastic, micro-services Cloud and OS portability Efficient resource utilization
  2. No patching No Upgrades Immutable infrastructure
  3. The first being everything in IT has an abbreviation or acronym k8s
  4. The first being everything in IT has an abbreviation or acronym k8s
  5. https://thenewstack.io/strategies-running-stateful-applications-kubernetes-persistent-volumes-claims/
  6. If Pods are ephemeral and their IP address might change if they get restarted how can I reliability reference my backend container from a frontend container? Pods are ephemeral and will be removed/rescheduled continuously. Abstraction layer above sets of objects so that you don’t have to trace specific objects as they restart Provides single endpoint for the underlying set of objects (Pod Replicas) A logical, internal load balancer for a set of related pods (an application) A single IP address and DNS name to refer to the set of pods
  7. https://thenewstack.io/deploy-highly-available-wordpress-instance-statefulset-kubernetes-1-5/
  8. Logging Aggregators Monitoring Loadbalancers Generic Background job that needs to run on every node