SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Everything you need to know in 5 minutes or 20 19 slides.
JJ Asghar, Developer Advocate
jja@ibm.com || awesome@ibm.com
@jjasghar
Kubernetes or k8s
Building blocks of k8s
First thing first, you use kubectl (kube-cut-el) to interface with your k8s cluster.
You WILL alias it to “k” within a week of typing kubectl out over and over.
Containers
Container
Kubernetes Kubernetes Kubernetes
Container
Container
Container
Container
Container
Pods
Container
ContainerPod C
Container
Container
Container
Pod B
Kubernetes
Container
Pod E
Container
Container
Container
Pod D
Container
Container
Pod A1
Container
Container
Pod A2
Kubernetes Kubernetes
A pod contains
one or more
containers
Pod is a unit of
scheduling to a
node
Deployments
Container
Container
Container
Pod B
Kubernetes
Container
Pod E
Container
Container
Pod A1
Container
Container
Pod A2
Deployment
Replicas = 2
Kubernetes Kubernetes
A Deployment ensures a pod is
always running on 1 or more
nodes.
A Deployment provides
upgrade / rollback facilities.
Nodes
Container
ContainerPod C
Container
Container
Container
Pod B
Container
Pod E
Container
Container
Container
Pod D
Container
Container
Pod A1
Container
Container
Pod A2
Deployment
Replicas
Node
Kubernetes
Node Node
Nodes Don't Matter
Container
Container
Container
Container
Container
Pod CPod A
Container
Container
Container
Container
Pod EPod D
Kubernetes
For developers Nodes are generally
hidden. It doesn't matter which Node
applications are on.*
*High Availability supported by affinity
rules
NodeNodeNode
Failure Recover
Container
ContainerPod C
Container
Container
Container
Pod B
Node
Container
Container
Pod A1
Container
Container
Pod A2
Node Node
Container
Container
Container
Pod B'
Container
Container
Pod A2
If a pod in a
deployment is
deleted or crashes, a
new version is
started
Internal concepts of k8s
Service Discovery
Container
Container
Container
Container
Container
Pod CPod A
Service
name: foo-web
5000
80
Kube DNS
Inside a pod,
containers can talk
to each other via
localhost ports
Pods must expose
ports explicitly to the
outside world
Services create an
internal DNS name and
port mapping to allow
other pods access
Applications
would connect to
http://foo-web
apiVersion: v1
kind: Service
metadata:
name: foo-web
labels:
app: foo-web
spec:
ports:
- port: 80
targetPort: 5000
name: foo-web-port
protocol: TCP
selector:
app: deploy-c
apiVersion: apps/v1
kind: Deployment
metadata:
name: deploy-c
labels:
app: deploy-c
spec:
...
Container
Container
Pod C'
5000
Selectors can match
more than one pod
Name Spaces
Container
Container
Container
Container
Container
Pod CPod B
Service
name: foo-web
5000
80
namespace: my-application
Visibility of all resources is namespace
scoped. Namespaces also provide a
primitive for security.
Container
Container
Container
Container
Container
Pod CPod B
Service
name: foo-web
5000
80
namespace: your-application
NodePort
Container
Pod C
Service
name: foo-web
spec:
type: NodePort
5000
80
NodePort binds an external IP address to
a single Node, with a port connection to
the Pod.
169.60.78.157
Node
Load Balancer
Container
Pod C
Service
name: foo-web
spec:
type: Loadbalancer
5000
80
Loadbalancers bind an external IP
address to a service.
169.60.78.157
Container
Pod C'
5000
Ingress
Container
Pod C
Container
Container
Container
Container
Pod EPod D
Service
name: foo-web
5000
80
Ingress
host: sdague-k001.us-east.containers.mybluemix.net
http:
paths:
- path: /
backend:
serviceName: foo-web
servicePort: 80
- path: /data-admin
backend:
serviceName: foo-data
servicePort: 3000
Service
name: foo-data
Ingress controllers provide open internet
access to http(s) services based on path.
Multiple services may be accessed based
on path matching from a single ingress
controller.
Ingress
Container
Pod C
Container
Container
Container
Container
Pod EPod D
Service
name: foo-web
5000
80
Ingress
host: sdague-k001.us-east.containers.mybluemix.net
http:
paths:
- path: /
backend:
serviceName: foo-web
servicePort: 80
- path: /data-admin
backend:
serviceName: foo-data
servicePort: 3000
Service
name: foo-data
Ingress controllers provide open internet
access to http(s) services based on path.
Multiple services may be accessed based
on path matching from a single ingress
controller.
Ecosystem
Helm
Istio
Knative
I think it should be called Kserverless…
Take a picture of this slide...
●
I hear that the IBM cloud, is great for this ;)
– https://cloud.ibm.com
– I can get you a promo code to have a real cluster online
●
We have workshops that we can run or send you the link
●
There’s also ways to run Kubernetes on your laptop/desktop
– Minikube, microk8s, kubeadm-dind-cluster
●
Kubernetes is ready for prime time, but you need to do your homework
●
Kubernetes is a defacto standardized control plane now
– You can run anything on it that you can run in a container, let that sink in for a second
●
Reach out, no joke, my job is to make your life better to learn this technology
– awesome@ibm.com or @jjasghar

Weitere ähnliche Inhalte

Mehr von DevOpsDays DFW

Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple StepsBjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
DevOpsDays DFW
 
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
DevOpsDays DFW
 
Scaling Continuous Delivery to Walmart
Scaling Continuous Delivery to WalmartScaling Continuous Delivery to Walmart
Scaling Continuous Delivery to Walmart
DevOpsDays DFW
 

Mehr von DevOpsDays DFW (18)

Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple StepsBjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
Bjorn Edwin - Start Your Own DevOps Dojo in 8 Simple Steps
 
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
Crux Conception - 'TECH-LIVES MATTER, HANDS UP, DON'T REBOOT'
 
Dana Finster - DevOps - Do the Math
Dana Finster - DevOps - Do the MathDana Finster - DevOps - Do the Math
Dana Finster - DevOps - Do the Math
 
Detangling complex systems with compassion & production excellence
Detangling complex systems with compassion & production excellenceDetangling complex systems with compassion & production excellence
Detangling complex systems with compassion & production excellence
 
Speeding Up Innovation
Speeding Up InnovationSpeeding Up Innovation
Speeding Up Innovation
 
DevOps Theory vs. Practice: A Song of Ice and Tire-Fire
DevOps Theory vs. Practice: A Song of Ice and Tire-FireDevOps Theory vs. Practice: A Song of Ice and Tire-Fire
DevOps Theory vs. Practice: A Song of Ice and Tire-Fire
 
Hidden Costs of Chasing the Mythical 'Five Nines'
Hidden Costs of Chasing the Mythical 'Five Nines'Hidden Costs of Chasing the Mythical 'Five Nines'
Hidden Costs of Chasing the Mythical 'Five Nines'
 
Stepping Up Your DevOps With Step Functions
Stepping Up Your DevOps With Step FunctionsStepping Up Your DevOps With Step Functions
Stepping Up Your DevOps With Step Functions
 
DevSecOps Through Blunt Force Trauma, I'm the Trauma
DevSecOps Through Blunt Force Trauma, I'm the TraumaDevSecOps Through Blunt Force Trauma, I'm the Trauma
DevSecOps Through Blunt Force Trauma, I'm the Trauma
 
Avoid the Distributed Monolith!!
Avoid the Distributed Monolith!!Avoid the Distributed Monolith!!
Avoid the Distributed Monolith!!
 
Using Docker to Build Software
Using Docker to Build SoftwareUsing Docker to Build Software
Using Docker to Build Software
 
Managing Cloud Infrastructure at Scale
Managing Cloud Infrastructure at ScaleManaging Cloud Infrastructure at Scale
Managing Cloud Infrastructure at Scale
 
The 12 Layer Burrito VS The 12 Factor APP
The 12 Layer Burrito VS The 12 Factor APPThe 12 Layer Burrito VS The 12 Factor APP
The 12 Layer Burrito VS The 12 Factor APP
 
The "Run Anywhere" Mindset
The "Run Anywhere" MindsetThe "Run Anywhere" Mindset
The "Run Anywhere" Mindset
 
Fostering The Third Way - Your DevOps Dojo
Fostering The Third Way - Your DevOps DojoFostering The Third Way - Your DevOps Dojo
Fostering The Third Way - Your DevOps Dojo
 
StereoTyped 101
StereoTyped 101StereoTyped 101
StereoTyped 101
 
Scaling Continuous Delivery to Walmart
Scaling Continuous Delivery to WalmartScaling Continuous Delivery to Walmart
Scaling Continuous Delivery to Walmart
 
What I learned from 5 years of sciencing the crap out of DevOps
What I learned from 5 years of sciencing the crap out of DevOpsWhat I learned from 5 years of sciencing the crap out of DevOps
What I learned from 5 years of sciencing the crap out of DevOps
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

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...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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...
 
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...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

JJ Asghar - Everything you need to know about Kubernetes in 5 mins