SlidePub
Home
Categories
Login
Register
Home
Design
introduction to kubernetes slide deck by Roach
introduction to kubernetes slide deck by Roach
ZiyanMaraikar1
45 views
21 slides
Jul 22, 2024
Slide
1
of 21
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
About This Presentation
introduction to kubernetes slide deck by Roach
Size:
863.07 KB
Language:
en
Added:
Jul 22, 2024
Slides:
21 pages
Slide Content
Slide 1
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Why use an orchestrator
Slide 2
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Application Anatomy
Application Server
Database
Web Server
Login ServicePhoto Upload
Like ServiceComment Service
Profile ServiceLogging Service
Photo ProcessingFriend Requests
Slide 3
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Redesign Image Sharing App
Microservice1Microservice2 Microservice
n
Team 1Team 2Team n
…
DB1…DB2DBn
Web front EndiOS AppAndroid App
API Service
Slide 4
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Autonomous
•Microservicecan be upgraded independent of other systems
•Microservicecan iterate as quickly as it needs
•Polyglot application stacks (Technology Heterogenity)
•Other microservicesare black boxes to other services
•Service can be used by other projects in the organization
Advantages of Microservices
Slide 5
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Using dockerCLI is all well and good as a developer..
But you’re probably not going to manage production like this…
Host / VM 2
Linux Kernel
DockerEngine
Container
$sshhost1
host1# dockerrun container
$sshhost2
host2# dockerrun container
$sshhost3
host3# dockerrun container
Host / VM 3
Linux Kernel
DockerEngine
Container
Host / VM 1
Linux Kernel
DockerEngine
Container
Slide 6
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
ContainerContainerContainer
Kubernetes
Load Balancing
Health ChecksLog Aggregation / Access
Developer API
Container orchestration is a must.
$kubectlscale deployment <name> --replicas=3
Once you’ve built your containers and pushed them. Container Orchestrators manage running
containers across a pool of resources for you
Slide 7
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Docker Swarm / EE
•Apache Marathon
•Rancher (seem to be moving towards k8s)
What are other orchestrators?
Slide 8
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
What is kubernetes?
Slide 9
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Container Orchestration
•Keeping your containers up, scaling them, routing traffic to them
•Kubernetes != Docker though K8S uses Docker (or CoreOS rkt)
What is Kubernetes?
Slide 10
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•MiniKube(local workstation)
•Installers (on-prem, hybrid, custom)
•Kops (part of core kubernetes.iogithub)
•Kubespray(Ansible+ Terraform)
•Etc, etc…
•Cloud
•Google Container Engine (GKE J)
•Azure Container Service
•Amazon EKS
•Etc…
Installation options
Slide 11
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Step-by-step tutorial of how to assemble a kubernetescluster
•https://github.com/kelseyhightower/kubernetes-the-hard-way
Sidebar: K8S the hard way
Slide 12
Source: http://x-team.com/2016/07/introduction-kubernetes-architecture/
Slide 13
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Kubernetes Components
Slide 14
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Kubernetes main Features
PodsDeploymentsServicesIngress
Slide 15
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Group of one or more containers, shared storage, and options for
how to run the containers
•Share IP address and port space
•Atomic unit of management
Pods
Source: http://kubernetes.io/docs/user-guide/pods/
Slide 16
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Rolling upgrades
•Declare intent: How many replicas should be running of a given
pod?
•Namespace
•Labels
•Ports that should be exposed
Deployments
Slide 17
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Abstraction for the mortality of Pods
•Provide single stable name and address for a set of pods inside the
cluster (aka service discovery).
Services
Source: http://kubernetes.io/docs/user-guide/services/
Slide 18
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
•Abstraction for services
•An Ingressis a set of rules for directing inbound traffic to a service.
•An Ingress Controller is a service that listens for the creation of new
services and does reverse proxy (nginx, traefik, f5 loadbalancer)
Ingress
See: http://kubernetes.io/docs/user-guide/ingress/
Slide 19
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
K8S templates: deployment
# k8s/dev/api-deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rest-api-swagger
spec:
replicas: 2
template:
metadata:
labels:
app: rest-api-swagger
spec:
containers:
-name: rest-api-swagger
image: ciscodevnet/rest-api-swagger:latest
ports:
-containerPort: 10010
Slide 20
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
K8S templates: service
# k8s/services/api-service-lb.yaml
kind: Service
apiVersion: v1
metadata:
name: rest-api-swagger
spec:
type: LoadBalancer# or NodePort, etc.
ports:
-name: http
port: 8080
targetPort: 10010
protocol: TCP
selector:
app: rest-api-swagger
Slide 21
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Manual kubectldeployment
$ kubectlapply -f k8s/dev/api-deployment.yaml
$ kubectlapply -f k8s/services/api-service-lb.yaml
$ kubectldescribe deployment
$ kubectldescribe service rest-api-swagger
$ kubectldelete -f k8s/dev/api-deployment.yaml
$ kubectldelete -f k8s/services/api-service-lb.yaml
Tags
Categories
Design
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
45
Slides
21
Age
497 days
Related Slideshows
1
MGV Residential Design projects for different clients, including a New Mexico Adobe project-1-.pdf
mannyvesa
26 views
16
EUNITED_Advocacy and Public Engagement through Visual Media
GeorgeDiamandis11
31 views
31
DESIGN THINKINGGG PPT 2 TOPIC IDEATION.pptx
HibaZaidi2
24 views
36
DESIGN THINKING CHAPTER 1 PPTT PPT 1.pptx
HibaZaidi2
28 views
112
Hinduism and Its History - PowerPoint Slides.pptx
ConorMcCormack10
24 views
20
Service Attributes of Manufactured Parts.pptx
MustafaEnesKrmac
24 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-21)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better