Skip to content

Commit

Permalink
Merge branch 'master' of github.com:demanejar/demanejar.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
trannguyenhan committed Nov 17, 2024
2 parents 1e335a3 + 55bece2 commit e77cbed
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions _posts/2024-10-26-k8s.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: Tổng quan k8s
author: longpt
date: 2022-02-18 20:52:00 +0700
categories: [Blogging]
tags: [k8s]
math: true
mermaid: true
image:
src: https://longpt233.github.io/images/2024-02-22%2021-44-01.png
---

Một số tìm hiểu ban đầu về k8s.

1. Mối liên hệ giữa containerd và docker


```mermaid
graph TD;
A[Docker CLI]-->|docker run ...|B[Docker Engine];
B[Docker Daemon];
B -->C[Containerd];
C --> D[Open Container Initiative OCI. 2015 by Docker];
D --> |Implement|E[runc Golang];
D --> |Implement|CR[crun C];
D --> |Implement|FC[firecracker-containerd AWS Lambda];
E --> CO[container]
CR --> CO[container]
FC --> CO[container]
F[Kubernetes] --> G[Container Runtime Interface CRI - K8s API];
G-->|dockershim. 1.24 k8s remove|B
G -->|Implement| C[Containerd from Docker];
G --->|Implement| H[CRI-O from Red Hat - OpenShift, IBM..];
H --> D
subgraph Docker
A
B
end
subgraph High Level Runtime: pull image. network. storage
C
H
end
subgraph Low Level Runtime
E
CR
FC
end
subgraph Kubernetes
F
G
end
```

- k8s đang bỏ docker runtime từ bản 1.24
- bỏ k có nghĩa là phải chỉnh lại docker-formatted container
- cả containerd và CRI-O điều có thể chạy docker-formatted và OCI-formatted images, chỉ khác là nó có thể chạy mà không cần dùng đến lệnh docker của docker daemon

https://vineetcic.medium.com/the-differences-between-docker-containerd-cri-o-and-runc-a93ae4c9fdac

2. Mô hình cài đặt

0 comments on commit e77cbed

Please sign in to comment.