Basic concepts of docker/kubernete/kata-container
Kubereters
An open-source system for automating deployment, scaling, and management of containerized applications;
Traditional >> Hypervisor >> Container
Traditional:
No way to define resource boundaries for applications in a physical server before, run each applications on a different physical server;
Hypervisor:
Will run multi VMs on a single physical server's CPU;
Allow applications to be isolated between VMs and provides a level of securiy as the infomation of one application cannot be freely accessed by another application;
Each VM is a full machine running all the components, including its own operating system;
Container:
Have relaxed isolation properties to share the operating system among the applications;
Lightweight;
A container has its own filesytem/CPU/memory/process space/..
Are portable across clouds and OS distributions because they are decoupled from the underlying infrastrucure;
Benifits of containers:
1. Agile application creation and deployment: increased ease and efficiency of container image creation compared to VM image use
2. Continuous development, integrations and deployment:
provide for reliable and frequent container image build and deployment with quick and easy rollbacks;
3. Dev and Ops separation of concerns: create application container images at build/release time rather than deployment time, thereby decoupling applications from infrastructure;
4. Obervability not only surfaces OS-level information and metrics, but also application health and other signals;
5. Environmental consistency across development, testing, and production; Runs the same on a laptop as it does in the cloud;
6. Cloud and OS distribution portabilty: Runs on Ubuntu, RHEL, CoreOS, on-prem, Google Kubernetes Engine, and anywhrere else;
7. Application-centric management;
8. Loosely coupled, distributed;
9. Resource isolation;
10. Resource utilization;
Benefits of Kubernetes:
1. Service discovery and load balancing
kubernetes expose a container using the DNS name or using their own IP address;
if traffic to a container is high, kubernetes is able to load balance and distribute the network traffic so that the deployment is stable;
2. Stroage orchestartion
automatically mount a storage system of local storages/public cloud providers/..
3. Automated rollouts and rollbacks
automake kubernets to create new containers
4. Self-healing
restart fail containers, kill no-respond containers;
5. Automatic bin packing
tell kubernetes how much CPU and RAM each container needs, kubernets can fit containers onto your nodes to make the best use of you resources;
Kubernetes Master
When deploying kubernetes, we wil get a cluster, which is a set of machines (nodes),
that run containerzed applications managed by kubernetes.
A cluster has at least one worker node and at least one master node;
Kubernetes Master is a collection of three processes that run on a single node in your cluster, which is designed as the master node;
Three processes:
Kube-apiserver;
Kube-controller-manager;
Kube-scheduler;
Individual non-master node in cluster run two processes:
which communicates with the Kubernetes Master;
The primary node agent that runs on each node; It can register the node with tha apiserver using one of
the host name;
a flag to override the hostname;
specific logic for a cloud provider;
a network proxy which reflects Kubernetes networking services on each node;
Kubernets network proxy runs on each node, this relects services as defined in the Kubernetes API on each node
and can do simple TCP/UDP and SCTP stream forwarding or round robin TCP/UDP/SCTP forwarding across a set of backends/
Service cluster IPs and ports are currently found through Docker-links-compatible
Kubernetes Objects
Kubernetes contains serveral abstractions representing the state of system;
Basic Kubernetes objects include:
Kata-container
An open-source project and community working to build a standard implement of lightweight VM that feel and perform like containers, but provide the workload isolation and security advantages of VMs;
Kata container Components
- Agent -- The Kata-agent runs inside the virtual machine and sets up the container environment
- KSM throttler -- An optional utility that monitors containers and deduplicates memory to max container density on a host
- Proxy -- A process running on the host and co-ordinates access to the agent running inside the VM
- Runtime -- Be invoked by a container manager and provides high-level verbs to manage containersd
- Shim -- A process that runs on the host, acts as though it is the workload ( which actually runs inside the VM), required to be compliant with th expecations of the OCI runtime sepc
- Hypervisor --
- Kernel -- HV uses a linux kernel to boot the guest image
Docker
Following storage drivers:
- overlay2 is the preferred storage driver, for all currently supported linux distributions, and requires no extra conf
- aufs is the preferred stroage driver for Docker 18.06 or older, when running on Ubuntu 14 on Kernel 3.13 which has no support or ovrlay2
- devicemapper is supported, but requires direct-lvm for production environments, because loopback-lvm, while zero-conf, has very poor performance.
Basic concepts of docker/kubernete/kata-container的更多相关文章
- Kata Container 介绍
docker容器,性能高,不安全:VM虚拟机,安全性好,性能损耗大:Kata Container轻量级虚拟机的容器,即安全,性能也高. 开源容器项目Kata Containers,旨在将虚拟机(VM) ...
- Basic Concepts of Block Media Recovery
Basic Concepts of Block Media Recovery Whenever block corruption has been automatically detected, yo ...
- docker的网络-Container network interface(CNI)与Container network model(CNM)
Overview 目前围绕着docker的网络,目前有两种比较主流的声音,docker主导的Container network model(CNM)和社区主导的Container network in ...
- (二)Basic Concepts 基本概念
Basic Concepts There are a few concepts that are core to Elasticsearch. Understanding these concepts ...
- Docker入门03——Container
1 启动容器 1.1 新建并启动 1.2 启动已终止容器 2 后台运行 3 终止 4 进入容器 5 导入和导出 5.1 导出 5.2 导入 6 删除 1 启动容器 1.1 新建并启动 docker r ...
- CMUSphinx Learn - Basic concepts of speech
Basic concepts of speech Speech is a complex phenomenon. People rarely understand how is it produced ...
- docker Cannot start container [8] System error: exec format error
docker Cannot start container [8] System error: exec format error 学习了:https://www.aliyun.com/jiaoch ...
- Docker 容器(container)
版权所有,未经许可,禁止转载 章节 Docker 介绍 Docker 和虚拟机的区别 Docker 安装 Docker Hub Docker 镜像(image) Docker 容器(container ...
- Docker实现退出container后保持继续运行的解决办法
现象: 运行一个image,例如ubuntu14.04: 1 docker run -it --rm ubuntu:14.04 bash 退出时: 执行Ctrl+D或者执行exit 查看线程: 1 d ...
随机推荐
- PAT甲级1006水题飘过
题目分析:由于不存在相同的两个时间(24:00:00和00:00:00不会同时存在),则我们假设两个全局变量存放到达的最早的时间和达到的最晚的时间,设置最早的初值为“23:59:59”,设置最晚的初值 ...
- 【Python爬虫案例学习】python爬取淘宝里的手机报价并以价格排序
第一步: 先分析这个url,"?"后面的都是它的关键字,requests中get函数的关键字的参数是params,post函数的关键字参数是data, 关键字用字典的形式传进去,这 ...
- 个人Wiki搭建(Gitbook + GitHub Pages)
工具选择:Gitbook + GitHub Pages 大概流程: 首先在本地编写md文件,然后生成对应的html文件,最后将这些html文件推送到github对应的gitbook仓库. 具体步骤: ...
- CF468C Hack It! 构造
传送门 让人觉得脑子不够用的构造 考虑对于一个区间\([l,r]\)如何让它调整使得最后的结果恰好加上\(1\). 注意到对于一个\(<10^{18}\)的数\(x\),\(f(x+10^{18 ...
- Java11新特性 - 标准Java异步HTTP客户端
Java9开始引入的一个处理 HTTP 请求的的 HTTP Client API,该 API 支持同步和异步,而在 Java 11 中已经为正式可用状态,你可以在 java.net 包中找到这个 AP ...
- Visual Studio 2019 XAML Hot Reload功能介绍
Visual Studio 2019提供了XAML Hot Reload功能,这个功能可以让WPF程序运行以后仍然可以修改XAML代码,并实时显示. XAML Hot Reload功能在Blend F ...
- Django:实现读写分离
库的配置 1.读写分离 settings配置 #settings.py 配置库信息,生成2个库 DATABASES = { 'default': { 'ENGINE': 'django.db.back ...
- koa2---koa-bodyparser中间件
对于POST请求的处理,koa-bodyparser中间件可以把koa2上下文的formData数据解析到ctx.request.body中 安装: npm install --save koa-bo ...
- Vue项目整体架构记要
此文记录初次学习Vue的一些记要,可做为参考,导图有些生涩,故意不再加以修复完善,以持初心!
- 使用虹软ArcFac,java 离线SDK 进行人脸识别
公司项目需要人脸识别登录,需要支持离线识别,所以无法使用在线的人脸识别的API,于是使用到了离线SDK来对比识别人脸相识度. 获取人脸抓拍的图片需要对接设备,这里不做记录,假设我们已经获取到了人脸图片 ...