Suche senden
Hochladen
Kubernetes basics and hands on exercise
•
1 gefällt mir
•
205 views
Cloud Technology Experts
Folgen
An Overview of the Basic Kubernetes Objects
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 35
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Kubernetes 101
Kubernetes 101
Stanislav Pogrebnyak
Managing kubernetes deployment with operators
Managing kubernetes deployment with operators
Cloud Technology Experts
Kubernetes Ingress 101
Kubernetes Ingress 101
Kublr
Kubernetes persistence 101
Kubernetes persistence 101
Kublr
Kubernetes debug like a pro
Kubernetes debug like a pro
Gianluca Arbezzano
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
Wojciech Barczyński
FOSDEM 2019: A containerd Project Update
FOSDEM 2019: A containerd Project Update
Phil Estes
From Code to Kubernetes
From Code to Kubernetes
Daniel Oliveira Filho
Empfohlen
Kubernetes 101
Kubernetes 101
Stanislav Pogrebnyak
Managing kubernetes deployment with operators
Managing kubernetes deployment with operators
Cloud Technology Experts
Kubernetes Ingress 101
Kubernetes Ingress 101
Kublr
Kubernetes persistence 101
Kubernetes persistence 101
Kublr
Kubernetes debug like a pro
Kubernetes debug like a pro
Gianluca Arbezzano
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
Wojciech Barczyński
FOSDEM 2019: A containerd Project Update
FOSDEM 2019: A containerd Project Update
Phil Estes
From Code to Kubernetes
From Code to Kubernetes
Daniel Oliveira Filho
Introduction kubernetes 2017_12_24
Introduction kubernetes 2017_12_24
Sam Zheng
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
Piotr Perzyna
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
brendandburns
Kubernetes and Hybrid Deployments
Kubernetes and Hybrid Deployments
Sandeep Parikh
Introduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
Bob Killen
Kubernetes Introduction
Kubernetes Introduction
Eric Gustafson
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
Cloud Native Day Tel Aviv
Demystifying the Nuts & Bolts of Kubernetes Architecture
Demystifying the Nuts & Bolts of Kubernetes Architecture
Ajeet Singh Raina
Kubernetes automation in production
Kubernetes automation in production
Paul Bakker
Deep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
Sreenivas Makam
Kubernetes extensibility
Kubernetes extensibility
Docker, Inc.
Top 3 reasons why you should run your Enterprise workloads on GKE
Top 3 reasons why you should run your Enterprise workloads on GKE
Sreenivas Makam
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Michael O'Sullivan
Orchestrating Microservices with Kubernetes
Orchestrating Microservices with Kubernetes
Weaveworks
Extended and embedding: containerd update & project use cases
Extended and embedding: containerd update & project use cases
Phil Estes
Kubernetes
Kubernetes
Meng-Ze Lee
Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2
Imesh Gunaratne
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Cloud Native Day Tel Aviv
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Oleg Chunikhin
Are you ready to be edgy? Bringing applications to the edge of the network
Are you ready to be edgy? Bringing applications to the edge of the network
Megan O'Keefe
Kubernetes scheduling and QoS
Kubernetes scheduling and QoS
Cloud Technology Experts
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
QAware GmbH
Weitere ähnliche Inhalte
Was ist angesagt?
Introduction kubernetes 2017_12_24
Introduction kubernetes 2017_12_24
Sam Zheng
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
Piotr Perzyna
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
brendandburns
Kubernetes and Hybrid Deployments
Kubernetes and Hybrid Deployments
Sandeep Parikh
Introduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
Bob Killen
Kubernetes Introduction
Kubernetes Introduction
Eric Gustafson
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
Cloud Native Day Tel Aviv
Demystifying the Nuts & Bolts of Kubernetes Architecture
Demystifying the Nuts & Bolts of Kubernetes Architecture
Ajeet Singh Raina
Kubernetes automation in production
Kubernetes automation in production
Paul Bakker
Deep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
Sreenivas Makam
Kubernetes extensibility
Kubernetes extensibility
Docker, Inc.
Top 3 reasons why you should run your Enterprise workloads on GKE
Top 3 reasons why you should run your Enterprise workloads on GKE
Sreenivas Makam
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Michael O'Sullivan
Orchestrating Microservices with Kubernetes
Orchestrating Microservices with Kubernetes
Weaveworks
Extended and embedding: containerd update & project use cases
Extended and embedding: containerd update & project use cases
Phil Estes
Kubernetes
Kubernetes
Meng-Ze Lee
Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2
Imesh Gunaratne
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Cloud Native Day Tel Aviv
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Oleg Chunikhin
Are you ready to be edgy? Bringing applications to the edge of the network
Are you ready to be edgy? Bringing applications to the edge of the network
Megan O'Keefe
Was ist angesagt?
(20)
Introduction kubernetes 2017_12_24
Introduction kubernetes 2017_12_24
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Kubernetes and Hybrid Deployments
Kubernetes and Hybrid Deployments
Introduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
Kubernetes Introduction
Kubernetes Introduction
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
Demystifying the Nuts & Bolts of Kubernetes Architecture
Demystifying the Nuts & Bolts of Kubernetes Architecture
Kubernetes automation in production
Kubernetes automation in production
Deep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
Kubernetes extensibility
Kubernetes extensibility
Top 3 reasons why you should run your Enterprise workloads on GKE
Top 3 reasons why you should run your Enterprise workloads on GKE
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Orchestrating Microservices with Kubernetes
Orchestrating Microservices with Kubernetes
Extended and embedding: containerd update & project use cases
Extended and embedding: containerd update & project use cases
Kubernetes
Kubernetes
Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Are you ready to be edgy? Bringing applications to the edge of the network
Are you ready to be edgy? Bringing applications to the edge of the network
Ähnlich wie Kubernetes basics and hands on exercise
Kubernetes scheduling and QoS
Kubernetes scheduling and QoS
Cloud Technology Experts
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
QAware GmbH
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
NETWAYS
Kubernetes on AWS 實作工作坊
Kubernetes on AWS 實作工作坊
Amazon Web Services
Introduction to kubernetes
Introduction to kubernetes
Rishabh Indoria
IBM Bluemix Nice meetup #5 - 20170504 - Orchestrer Docker avec Kubernetes
IBM Bluemix Nice meetup #5 - 20170504 - Orchestrer Docker avec Kubernetes
IBM France Lab
Kubernetes: one cluster or many
Kubernetes: one cluster or many
cornelia davis
Getting started with kubernetes
Getting started with kubernetes
Bob Killen
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
Stfalcon Meetups
Kubernetes #1 intro
Kubernetes #1 intro
Terry Cho
Deploy Application on Kubernetes
Deploy Application on Kubernetes
Opsta
Kubernetes Intro
Kubernetes Intro
Antonio Ojea Garcia
DevEx | there’s no place like k3s
DevEx | there’s no place like k3s
Haggai Philip Zagury
Introduction to kubernetes
Introduction to kubernetes
Gabriel Carro
Introduction to Kubernetes
Introduction to Kubernetes
Vishal Biyani
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB
Open shift and docker - october,2014
Open shift and docker - october,2014
Hojoong Kim
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
CodeOps Technologies LLP
Kubernetes on AWS
Kubernetes on AWS
Grant Ellis
Kubernetes on AWS
Kubernetes on AWS
Grant Ellis
Ähnlich wie Kubernetes basics and hands on exercise
(20)
Kubernetes scheduling and QoS
Kubernetes scheduling and QoS
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
Kubernetes on AWS 實作工作坊
Kubernetes on AWS 實作工作坊
Introduction to kubernetes
Introduction to kubernetes
IBM Bluemix Nice meetup #5 - 20170504 - Orchestrer Docker avec Kubernetes
IBM Bluemix Nice meetup #5 - 20170504 - Orchestrer Docker avec Kubernetes
Kubernetes: one cluster or many
Kubernetes: one cluster or many
Getting started with kubernetes
Getting started with kubernetes
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
Kubernetes #1 intro
Kubernetes #1 intro
Deploy Application on Kubernetes
Deploy Application on Kubernetes
Kubernetes Intro
Kubernetes Intro
DevEx | there’s no place like k3s
DevEx | there’s no place like k3s
Introduction to kubernetes
Introduction to kubernetes
Introduction to Kubernetes
Introduction to Kubernetes
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
Open shift and docker - october,2014
Open shift and docker - october,2014
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes on AWS
Kubernetes on AWS
Kubernetes on AWS
Kubernetes on AWS
Kürzlich hochgeladen
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
V3cube
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
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...
Neo4j
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Kürzlich hochgeladen
(20)
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
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...
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Kubernetes basics and hands on exercise
1.
© 2017 Cloud
Technology Experts INC. All rights reserved. KUBERNETES BASIC OBJECTS & DEMO Damian Igbe damianigbe@cloudtechnologyexperts.com
2.
© 2017 Cloud
Technology Experts INC. All rights reserved. Cloud Technology Experts Agenda ● Quick Kubernetes Concepts ● Kubernetes Architecture ● Kubernetes Fundamental Objects ● Demo ● Conclusion,Q&A & Meetup business
3.
© 2017 Cloud
Technology Experts INC. All rights reserved. Scheduling: Decide where my containers should run Lifecycle and health: Keep my containers running despite failures Scaling: Make sets of containers bigger or smaller Naming and discovery: Find where my containers are now Load balancing: Distribute traffic across a set of containers Storage volumes: Provide data to containers Logging and monitoring: Track what’s happening with my containers Debugging and introspection: Enter or attach to containers Identity and authorization: Control who can do things to my containers Container Orchestration
4.
© 2017 Cloud
Technology Experts INC. All rights reserved. Want to automate orchestration for velocity & scale Diverse workloads and use cases demand still more functionality ● Rolling updates and blue/green deployments ● Application secret and configuration distribution ● Continuous integration and deployment ● Batch processing ● Scheduled execution ... A composable, extensible Platform is needed
5.
© 2017 Cloud
Technology Experts INC. All rights reserved. Greek for “Helmsman”; also the root of the words “governor” and “cybernetic” • Infrastructure for containers • Schedules, runs, and manages containers on virtual and physical machines • Platform for automating deployment, scaling, and operations Kubernetes
6.
© 2017 Cloud
Technology Experts INC. All rights reserved. • Inspired and informed by Google’s experiences and internal systems • 100% Open source, written in Go • One of the top 4 open source software projects with highest velocity and contribution Kubernetes
7.
© 2017 Cloud
Technology Experts INC. All rights reserved. Drive current state → desired state Observed state is truth Act independently • choreography rather than orchestration Recurring pattern in the system Kubernetes Control Loop
8.
© 2017 Cloud
Technology Experts INC. All rights reserved. KUBERNETES ARCHITECTURE
9.
© 2017 Cloud
Technology Experts INC. All rights reserved. Cluster Components Master/Controller ● API Server (kube-apiserver) ● Scheduler (kube-scheduler) ● Controller manager (kube-controller-manager) ● etcd (stores cluster state) Node ● Kubelet (“node agent”) ● Kube-proxy ● Container Runtime (Docker,rkt)
10.
© 2017 Cloud
Technology Experts INC. All rights reserved. Kubernetes Architecture
11.
© 2017 Cloud
Technology Experts INC. All rights reserved. Architecture: Master Node Master Node (“Control Plane”) kube-apiserver - Point of interaction with the cluster - Exposes http endpoint kube-controller-manager - Responsible for most of the important stuff - Interacts with the api server to retrieve cluster state - Responsible for configuring networking - Allocates node CIDRs - Ensures correct number of pods are running - Reacts to Nodes being added / deleted - Manages Service Accounts and security tokens kube-scheduler - Schedules newly created pods to a Node
12.
© 2017 Cloud
Technology Experts INC. All rights reserved. Architecture: Master Node Master Node (“Control Plane”) Etcd - Stores the state of the cluster - Doesn’t necessarily have to be co-located with other components - Must be backed up in a production scenario
13.
© 2017 Cloud
Technology Experts INC. All rights reserved. Architecture: Worker Node kubelet ● Agent for running Pods ● Mounts volumes for Pods where required ● Reports the status of Pods back to rest of system kube-proxy ● Enforces network rules on each Node (uses iptables) ● Responsible for forwarding packets to correct destination
14.
© 2017 Cloud
Technology Experts INC. All rights reserved. KUBERNETES FUNDAMENTAL OBJECTS
15.
© 2017 Cloud
Technology Experts INC. All rights reserved. Kubernetes Fundamental Objects ● Pods ● Label/Selectors ● Replica Sets/Replication Controllers ● Deployments ● Services ● *ConfigMaps/Secrets*
16.
© 2017 Cloud
Technology Experts INC. All rights reserved. Pod ● A pod is one or more containers ● Ensures co-location / shared fate ● Pods are scheduled, then do not move between nodes ● Containers share resources within the pod: ○ Volumes ○ Network / IP ○ Namespace ○ CPU / Memory allocations
17.
© 2017 Cloud
Technology Experts INC. All rights reserved. A pod manifest file in Yaml apiVersion: v1 kind: Pod metadata: name: redis-nginx labels: app: web spec: containers: - name: redis image: redis ports: - containerPort: 6379 - name: nginx image: nginx ports: - containerPort: 8080
18.
© 2017 Cloud
Technology Experts INC. All rights reserved. Label/Selectors ● Labels are arbitrary metadata ● Attachable to nearly all API objects e.g.: Pods, ReplicationControllers, Services... ● Simple key=value pairs ● Can be queried with selectors ● The only grouping mechanism ○ pods under a ReplicationController ○ pods in a Service ○ capabilities of a node (constraints
19.
© 2017 Cloud
Technology Experts INC. All rights reserved. Example of Labels ● release=stable, release=beta, Release=alpha ● environment=dev, environment=qa, environment=prod ● tier=frontend, tier=backend, tier=middleware ● partition=customer1, partition=customer2
20.
© 2017 Cloud
Technology Experts INC. All rights reserved. Pod manifest showing labels apiVersion: v1 kind: Pod metadata: name: redis-nginx labels: app: web env: test spec: containers: - name: redis image: redis ports: - containerPort: 6379 - name: nginx image: nginx ports: - containerPort: 8080
21.
© 2017 Cloud
Technology Experts INC. All rights reserved. Labels are queryable metadata - selectors can do the queries: ● Equality based: ○ environment = production ○ tier != frontend ○ combinations: tier != frontend, version = 1.0.0 ● Set based: ○ environment in (production, pre-production) ○ tier notin (frontend, backend) ○ partition or !partition Label Selectors
22.
© 2017 Cloud
Technology Experts INC. All rights reserved. ● Define the number of replicas of a pod ● Will scheduled across all applicable nodes ● Can change replica value to scale up/down ● Which pods are scaled depends on RC selector ● Labels and selectors are used for grouping ● Can do quite complex things with RCs and labels Replication Controllers
23.
© 2017 Cloud
Technology Experts INC. All rights reserved. A RC manifest file in Yaml apiVersion: v1 kind: ReplicationController metadata: name: nginx spec: replicas: 3 selector: app: nginx template: metadata: name: nginx labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80
24.
© 2017 Cloud
Technology Experts INC. All rights reserved. Replica Set is the next-generation Replication Controller. The only difference between a Replica Set and a Replication Controller right now is the selector support. Replica Set supports the new set-based selector which allow filtering keys according to a set of values: ● In ● Notin ● exists (only the key identifier) For example: ● environment in (production, qa) ● tier notin (frontend, backend) ● partition ● !partition Replica Set
25.
© 2017 Cloud
Technology Experts INC. All rights reserved. A RS manifest file in Yaml apiVersion: extensions/v1beta1 kind: ReplicaSet metadata: name: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: name: nginx labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80
26.
© 2017 Cloud
Technology Experts INC. All rights reserved. A Deployment is responsible for creating and updating instances of your application ● Create a Deployment to bring up Pods and a replica set. Deployment->ReplicatSet->Pods ● Check the status of a Deployment to see if it succeeds or not. ● Later, update that Deployment to recreate the Pods (for example, to use a new image). ● Rollback to an earlier Deployment revision if the current Deployment isn’t stable. Deployments
27.
© 2017 Cloud
Technology Experts INC. All rights reserved. A Deployment manifest file in Yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: deploy1 spec: selector: matchLabels: app: nginx replicas: 4 template: metadata: labels: app: nginx spec: containers: - name: containercm1 image: nginx ports: - containerPort: 80 env: - name: weatherseasons valueFrom: configMapKeyRef: name: weathervariable key: weather
28.
© 2017 Cloud
Technology Experts INC. All rights reserved. defines a logical set of Pods and a policy by which to access them ● As Pods are ephemeral, we can't depend on Pod IPs ● Services find pods that match certain selection criteria ● Services can load balance between multiple Pods ● Services can have a single IP that doesn’t change ● Services are used for service Discovery Services
29.
© 2017 Cloud
Technology Experts INC. All rights reserved. ● A group of pods that act as one == Service ○ group == selector ● Defines access policy ○ ClusterIP, LoadBalanced, NodePort ● Gets a stable virtual IP and Port ○ Called the service portal ○ Also a DNS name ○ On prem additional loadbalancer is needed ● VIP is captured by kube-proxy ○ Watches the service consistency ○ Updates when backend changes Services
30.
© 2017 Cloud
Technology Experts INC. All rights reserved. apiVersion: v1 kind: Service metadata: name: railsapp spec: type: NodePort selector: app: nginx ports: - name: http nodePort: 30002 port: 80 protocol: TCP Services Manifest
31.
© 2017 Cloud
Technology Experts INC. All rights reserved. DEPLOYMENTS AND SERVICES: Demo with kubernetes Guestbook app
32.
© 2017 Cloud
Technology Experts INC. All rights reserved. Q & A
33.
© 2017 Cloud
Technology Experts INC. All rights reserved. Meetup Goals/Vision ● Focus of the meetup will be on CNCF Hosted Applications (Kubernetes, Prometheus, Fluentd, gRPC,Linkerd, Opentracing, rkt, containerd,CNI, CoreDNS) ● Also around Cloud Native Microservices apps, Devops, Docker containers ● This is inline with CNCF goals of community education and dissemination of information ● Hope to conduct Free Kubernetes Training but will discuss with CNCF for sponsorship opportunities ● 2 speeches per meetup or 1 depending on the presentation? ● Online meetup streaming?
34.
© 2017 Cloud
Technology Experts INC. All rights reserved. Announcements ● Kubecon and CloudNative Conference. December 6-8th. https://www.cncf.io/event/cloudnativecon-north-america-2017/ ● Ambassadors https://www.cncf.io/people/ambassadors/ ● Beta Certifications https://www.cncf.io/blog/2017/06/15/sign-kubernetes-beta-certification-exam/ ● Free Kubernetes Training https://www.edx.org/course/introduction-kubernetes-linuxfoundationx-lfs158x https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615 ● Follow on twitter/linkedin
35.
© 2017 Cloud
Technology Experts INC. All rights reserved. Damian Igbe, PhD ● PhD in Computer science ● Linux Systems Administration ● Technical Trainer by trade ● Kubernetes Certified Administrator ● Kubernetes Doc team contributor ● CTO of Cloud Technology Experts
Jetzt herunterladen