SlideShare a Scribd company logo
1 of 17
CHECKIN
Kubernetes training course – Sep 2022 author: viettq
AGENDA
Kubernetes training course – Sep 2022 author: viettq
 Get to know each other
 What is Kubernetes
 Why Kubernetes
 Kubenetes architect
 Get to know how pod is created/deleted
 Summary
WHAT IS KUBERNETES?
Kubernetes training course – Sep 2022 author: viettq
WHAT IS KUBERNETES?
Kubernetes training course – Sep 2022 author: viettq
 In Greek mean “Pilot” or
 “Helmsman” of a ship
WHY USE KUBERNETES?
Kubernetes training course – Sep 2022 author: viettq
 Manage container at scale
 Declarative
 Self healing
 Service discovery
 Run anywhere
KUBERNETES ARCHITECT
Kubernetes training course – Sep 2022 author: viettq
kube-controller cloud-controller
kube-api-server
etcd
kube-scheduler
kubelet
kube-proxy
CRI
kubelet
kube-proxy
CRI
Worker Node Worker Node
Cloud
Control Plane Node
KUBERNETES ARCHITECT
Kubernetes training course – Sep 2022 author: viettq
kube-controller cloud-controller
kube-api-server
etcd
kube-scheduler
kubelet
kube-proxy
CRI
kubelet
kube-proxy
CRI
Worker Node Worker Node
Cloud
Master Node
MASTER NODE & WORKER NODE
KUBERNETES ARCHITECT
Kubernetes training course – Sep 2022 author: viettq
MASTER NODE & WORKER NODE
KUBERNETES ARCHITECT
Kubernetes training course – Sep 2022 author: viettq
 Kube-api-server
 etcd
 Kube-scheduler
 Kube-controller
 Cloud-controller
CONTROL PLANE NODE
KUBERNETES ARCHITECT
Kubernetes training course – Sep 2022 author: viettq
 Kubelet
 Kube-proxy
 Containter runtime interface (CRI)
 Docker
 Containerd
 Podman
KUBERNETES NODE
KUBERNETES RESOURCE
Kubernetes training course – Sep 2022 author: viettq
 Nodes
 Pods
 Service
 Deployment
 Replicaset
 Statefulset
.
 Daemonset
 Ingress
 Configmap
 PVC
 PV
 Secret
 Endpoint
 PodDisruptionPolicy
 Role/ClusterRole
 RoleBinding/ClusterRoleBinding
 …
KUBERNETES RESOURCE
Kubernetes training course – Sep 2022 author: viettq
 Init container
 Configure a database
 Do heathcheck
 Sidecar container
 Ship log (as a agent)
 Configure secrets
 Service Mesh
 Application container
 Microservice
 Database server
PODS
Pod
Init container
Sidecar container
Application container
POD CREATION FLOW
Kubernetes training course – Sep 2022 author: viettq
WHAT IS HAPPENING
 How is a pod created?
POD CREATION FLOW
Kubernetes training course – Sep 2022 author: viettq
WHAT IS HAPPENING
 How is a pod created?
POD DELETION FLOW
Kubernetes training course – Sep 2022 author: viettq
WHAT IS HAPPENING
SUMMARY
Kubernetes training course – Sep 2022 author: viettq
.
 Control plane node vs Kubernetes node (Master node vs Worker node)
 K8S Components
 K8S resource: Namespace level vs Cluster level
 Pod creation/deletion flow
Q&A
ASK ME ANYTHING
Kubernetes training course – Sep 2022 author: viettq
.

More Related Content

Similar to k8s-course-session01-overview.pptx

Kubernetes day 2 Operations
Kubernetes day 2 OperationsKubernetes day 2 Operations
Kubernetes day 2 OperationsPaul Czarkowski
 
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components Automations
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components AutomationsFIWARE Global Summit - Leveraging Kubernetes for FIWARE Components Automations
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components AutomationsFIWARE
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingPiotr Perzyna
 
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
 
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017Codemotion
 
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteTectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteCoreOS
 
Kubernetes extensibility
Kubernetes extensibilityKubernetes extensibility
Kubernetes extensibilityDocker, Inc.
 
Serverless with Knative - Mete Atamel (Google)
Serverless with Knative - Mete Atamel (Google)Serverless with Knative - Mete Atamel (Google)
Serverless with Knative - Mete Atamel (Google)Shift Conference
 
Kubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT DevicesKubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT DevicesQAware GmbH
 
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex GervaisAmbassador Labs
 
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...Preferred Networks
 
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASYKUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASYRed Hat Developers
 
Toronto RHUG: Container-native virtualization
Toronto RHUG: Container-native virtualizationToronto RHUG: Container-native virtualization
Toronto RHUG: Container-native virtualizationStephen Gordon
 
Kubernetes Basis: Pods, Deployments, and Services
Kubernetes Basis: Pods, Deployments, and ServicesKubernetes Basis: Pods, Deployments, and Services
Kubernetes Basis: Pods, Deployments, and ServicesJian-Kai Wang
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to KubernetesPaul Czarkowski
 
Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Wojciech Barczyński
 
DCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDocker, Inc.
 
Kubernetes-Fundamentals.pptx
Kubernetes-Fundamentals.pptxKubernetes-Fundamentals.pptx
Kubernetes-Fundamentals.pptxsatish642065
 
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation NightKubernetes Kops - Automation Night
Kubernetes Kops - Automation NightKasper Nissen
 

Similar to k8s-course-session01-overview.pptx (20)

Kubernetes day 2 Operations
Kubernetes day 2 OperationsKubernetes day 2 Operations
Kubernetes day 2 Operations
 
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components Automations
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components AutomationsFIWARE Global Summit - Leveraging Kubernetes for FIWARE Components Automations
FIWARE Global Summit - Leveraging Kubernetes for FIWARE Components Automations
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
 
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
 
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017
Andrea Tosatto - Kubernetes Beyond - Codemotion Milan 2017
 
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteTectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
 
Kubernetes extensibility
Kubernetes extensibilityKubernetes extensibility
Kubernetes extensibility
 
Serverless with Knative - Mete Atamel (Google)
Serverless with Knative - Mete Atamel (Google)Serverless with Knative - Mete Atamel (Google)
Serverless with Knative - Mete Atamel (Google)
 
Kubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT DevicesKubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT Devices
 
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais
[Confoo Montreal 2020] Build Your Own Serverless with Knative - Alex Gervais
 
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...
KubeCon EU 2021 Recap - Running Cache-Efficient Builds at Scale on Kubernetes...
 
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASYKUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
KUBEBOOT - SPRING BOOT DEPLOYMENT ON KUBERNETES HAS NEVER BEEN SO EASY
 
Toronto RHUG: Container-native virtualization
Toronto RHUG: Container-native virtualizationToronto RHUG: Container-native virtualization
Toronto RHUG: Container-native virtualization
 
Kubernetes Basis: Pods, Deployments, and Services
Kubernetes Basis: Pods, Deployments, and ServicesKubernetes Basis: Pods, Deployments, and Services
Kubernetes Basis: Pods, Deployments, and Services
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple
 
DCEU 18: Docker Container Networking
DCEU 18: Docker Container NetworkingDCEU 18: Docker Container Networking
DCEU 18: Docker Container Networking
 
Kubernetes-Fundamentals.pptx
Kubernetes-Fundamentals.pptxKubernetes-Fundamentals.pptx
Kubernetes-Fundamentals.pptx
 
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation NightKubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
 

Recently uploaded

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
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
 
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
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
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
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
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
 
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
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
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
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

k8s-course-session01-overview.pptx

  • 1. CHECKIN Kubernetes training course – Sep 2022 author: viettq
  • 2. AGENDA Kubernetes training course – Sep 2022 author: viettq  Get to know each other  What is Kubernetes  Why Kubernetes  Kubenetes architect  Get to know how pod is created/deleted  Summary
  • 3. WHAT IS KUBERNETES? Kubernetes training course – Sep 2022 author: viettq
  • 4. WHAT IS KUBERNETES? Kubernetes training course – Sep 2022 author: viettq  In Greek mean “Pilot” or  “Helmsman” of a ship
  • 5. WHY USE KUBERNETES? Kubernetes training course – Sep 2022 author: viettq  Manage container at scale  Declarative  Self healing  Service discovery  Run anywhere
  • 6. KUBERNETES ARCHITECT Kubernetes training course – Sep 2022 author: viettq kube-controller cloud-controller kube-api-server etcd kube-scheduler kubelet kube-proxy CRI kubelet kube-proxy CRI Worker Node Worker Node Cloud Control Plane Node
  • 7. KUBERNETES ARCHITECT Kubernetes training course – Sep 2022 author: viettq kube-controller cloud-controller kube-api-server etcd kube-scheduler kubelet kube-proxy CRI kubelet kube-proxy CRI Worker Node Worker Node Cloud Master Node MASTER NODE & WORKER NODE
  • 8. KUBERNETES ARCHITECT Kubernetes training course – Sep 2022 author: viettq MASTER NODE & WORKER NODE
  • 9. KUBERNETES ARCHITECT Kubernetes training course – Sep 2022 author: viettq  Kube-api-server  etcd  Kube-scheduler  Kube-controller  Cloud-controller CONTROL PLANE NODE
  • 10. KUBERNETES ARCHITECT Kubernetes training course – Sep 2022 author: viettq  Kubelet  Kube-proxy  Containter runtime interface (CRI)  Docker  Containerd  Podman KUBERNETES NODE
  • 11. KUBERNETES RESOURCE Kubernetes training course – Sep 2022 author: viettq  Nodes  Pods  Service  Deployment  Replicaset  Statefulset .  Daemonset  Ingress  Configmap  PVC  PV  Secret  Endpoint  PodDisruptionPolicy  Role/ClusterRole  RoleBinding/ClusterRoleBinding  …
  • 12. KUBERNETES RESOURCE Kubernetes training course – Sep 2022 author: viettq  Init container  Configure a database  Do heathcheck  Sidecar container  Ship log (as a agent)  Configure secrets  Service Mesh  Application container  Microservice  Database server PODS Pod Init container Sidecar container Application container
  • 13. POD CREATION FLOW Kubernetes training course – Sep 2022 author: viettq WHAT IS HAPPENING  How is a pod created?
  • 14. POD CREATION FLOW Kubernetes training course – Sep 2022 author: viettq WHAT IS HAPPENING  How is a pod created?
  • 15. POD DELETION FLOW Kubernetes training course – Sep 2022 author: viettq WHAT IS HAPPENING
  • 16. SUMMARY Kubernetes training course – Sep 2022 author: viettq .  Control plane node vs Kubernetes node (Master node vs Worker node)  K8S Components  K8S resource: Namespace level vs Cluster level  Pod creation/deletion flow
  • 17. Q&A ASK ME ANYTHING Kubernetes training course – Sep 2022 author: viettq .

Editor's Notes

  1. Container Orchestration: Là hệ thống điều phối container để tự động hóa việc triển khai, mở rộng và quản lý phần mềm. Google ban đầu thiết kế Kubernetes, nhưng Cloud Native Computing Foundation hiện vẫn duy trì dự án
  2. Container Orchestration: Là hệ thống điều phối container để tự động hóa việc triển khai, mở rộng và quản lý phần mềm. Google ban đầu thiết kế Kubernetes, nhưng Cloud Native Computing Foundation hiện vẫn duy trì dự án
  3. Container Orchestration: Là hệ thống điều phối container để tự động hóa việc triển khai, mở rộng và quản lý phần mềm. Google ban đầu thiết kế Kubernetes, nhưng Cloud Native Computing Foundation hiện vẫn duy trì dự án
  4. Quản lý số lượng lớn các container so với sử dụng docker on baremetal. Declarative  Có tính chất khai báo. Các resource của k8s đều có thể khai báo một cách rõ ràng và trong sáng dưới dạng yaml Self healing  Cơ chế tự sửa lỗi. Ý tưởng này giống Vmware. Vmware restart service 3 lần, restart VM.. Thì k8s có cơ chế restart pod (hết limit ram, exception..), tạo ra pod mới nếu không đủ số pod healthy.. Một cách tự động Service discovery  Tính năng rất quan trọng của k8s. Ví dụ ta triển khai một ứng dụng như smch-api-server gồm 3 pod Mỗi pod có 1 ip riêng, và các pod hoàn toàn có thể bị xoá đi tạo lại trong quá trình hoạt động do đó IP cũng thay đổi liên lục. Lúc này service discovery giúp chúng ta giải quyết vấn đề này. Service sẽ cung cấp một ip ảo (VIP) cho toàn bộ các Pod phía sau nó. Chúng ta sẽ tìm hiểu kỹ hơn các phần tiếp theo khi tìm hiểu về service trên k8s Run anywhere: Chạy trên baremetal, VM, cloud..
  5. Lưu ý CRI không thuộc thành phần của k8s nhưng nó bắt buộc phải có ở các worker node để đảm bảo các container có môi trường để chạy. Nó hỗ trợ CRI như docker, containerd và podman. Sắp tới phiên bản mới của k8s sẽ không còn hỗ trợ docker nữa  Sẽ dần chuyển sang containerd
  6. Cần nhớ rõ 2 khái niệm: Master node >< Worker Node Master cũng có thể đóng vai trò worker tức là nhận workload
  7. Kiểm tra vai trò của node trong k8s, có cột role hiển thị rõ rang vai trò của node trong cluster
  8. Các thành phần chính của Control Plane: Với hệ thống onpremis thì phần cloud-controller là không sử dụng tới. Ta chỉ quan tâm 4 thành phần chính: etcd + api + scheduler + controller manager
  9. Thành phần Kubernetes node gồm 2 phần chính: kubelete và kubeproxy Kubelete: Quản lý node, cập nhật trạng thái của node cũng nhưng các workload mà node đang quản lý Cập nhật thông tin từ apiserver về node: Yêu cầu thêm/sửa/xóa các workload trên node (như pod, deployment..) Kube-proxy: Làm nhiệm vụ kiểm soát các rule kết nối đến và đi tới node. Nó đảm bảo kết nối giữa các pod trong mạng của k8s. Các CRI phổ biến có 3 loại. Hiện tại tất cả các hệ thống của khối SMC đều dùng docker
  10. Các tài nguyên trên k8s khá đa đạng, trong đó ta sẽ quan tâm tới các tài nguyên mà ta thường xuyên phải sử dụng tới. Lưu ý khái niệm namespace: Cũng là một tài nguyên của k8s. Nó làm nhiệm vụ phân tách các nhóm tài nguyên trong một cụm k8s cluster. Tên của các tài nguyên bên trong mỗi namespace phải là duy nhất. Các tài nguyên ở các ns khác nhau thì có thể trùng nhau. Namespace chỉ sử dụng với các resource mức namespace chứ không dung cho tài nguyên mức cluster (như node, storage class, PV..) Các tài nguyên trên k8s chia làm 2 loại: Mức namespace và mức cluster  Cần nhớ kỹ 2 khái niệm này.
  11. Pod là đơn vị nhỏ nhất trong k8s mà ta có thể quản lý. Tuy trong nó còn có các container nhưng việc quản lý container là của pod. Ta chỉ có thể tạo/sửa/xoá pod chứ ko thể sửa/xoá một container trong một pod đang chạy được. Pod có thể chứa một hoặc nhiều container có quan hệ mật thiết với nhau. Init container: Được thực thi trong khi khởi động pod. Thường được ứng dụng để thực hiện các tác vụ health check hoặc các tác vụ preconfig Sidecar containers là các container mà chạy bên cạnh application containers ở trong một Pod, nó sẽ có nhiệm vụ mở rộng và hỗ trợ chức năng cho application containers. Ví dụ như gửi log từ main container sang log agent. Một ví dụ nữa của sidecar là khi dùng với vault, nó sẽ làm nhiệm vụ lấy thông tin credential về cho Pod. Sidecar dùng cho service mesh. Khi cài đặt service mesh thì khi tạo một pod mới, service mesh sẽ tự động them vào một sidecar container vào pod đó để làm nhiệm vụ service mesh App container: Là container chính mà ta chạy ứng dụng. Pod được cấp IP, được cấp tài nguyên RAM/CPU để thực thi. IP do k8s cấp, tài nguyên do ta định nghĩa (hoặc có thể không định nghĩa) khi tạo pod.