linux部署k8s

news2024/7/3 10:32:22

linux部署k8s

  • 0、k8s的前世今生
  • 1、下载k8s
  • 2、k8s文档
    • 2.1、容器化部署的优越性
      • 2.1.1、Traditional deployment era
      • 2.1.2、Virtualized deployment era
      • 2.1.3、Container deployment era
  • 3、安装k8s
    • 3.1、Install kubectl on Linux
    • 3.2、

0、k8s的前世今生

参考链接: https://kubernetes.io/blog/2015/04/borg-predecessor-to-kubernetes/

1、下载k8s

下载链接: https://kubernetes.io/releases/download/#binaries

2、k8s文档

k8s介绍: https://kubernetes.io/docs/concepts/overview/

k8s下载:https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.27.md#downloads-for-v1271

k8s安装:https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

2.1、容器化部署的优越性

在这里插入图片描述

2.1.1、Traditional deployment era

Early on, organizations ran applications on physical servers. 
There was no way to define resource boundaries for applications 
in a physical server, and this caused resource allocation issues. 
For example, if multiple applications run on a physical server, 
there can be instances where one application would take up most 
of the resources, and as a result, the other applications would 
underperform. A solution for this would be to run each 
application on a different physical server. But this did not 
scale as resources were underutilized, and it was expensive for 
organizations to maintain many physical servers.

2.1.2、Virtualized deployment era

As a solution, virtualization was introduced. It allows you to 
run multiple Virtual Machines (VMs) on a single physical server's 
CPU. Virtualization allows applications to be isolated between 
VMs and provides a level of security as the information of one 
application cannot be freely accessed by another application.


Virtualization allows better utilization of resources in a 
physical server and allows better scalability because an 
application can be added or updated easily, reduces hardware 
costs, and much more. With virtualization you can present a set 
of physical resources as a cluster of disposable virtual 
machines.

Each VM is a full machine running all the components, including 
its own operating system, on top of the virtualized hardware.

2.1.3、Container deployment era

Containers are similar to VMs, but they have relaxed isolation 
properties to share the Operating System (OS) among the 
applications. Therefore, containers are considered lightweight. 
Similar to a VM, a container has its own filesystem, share of 
CPU, memory, process space, and more. As they are decoupled from 
the underlying infrastructure, they are portable across clouds 
and OS distributions.

Containers have become popular because they provide extra benefits, such as:

  1. Agile application creation and deployment: increased ease and efficiency of container image creation compared to VM image use.
  2. Continuous development, integration, and deployment: provides for reliable and frequent container image build and deployment with quick and efficient rollbacks (due to image immutability).
  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. Observability: 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 portability: runs on Ubuntu, RHEL, CoreOS, on-premises, on major public clouds, and anywhere else.
  7. Application-centric management: raises the level of abstraction from running an OS on virtual hardware to running an application on an OS using logical resources.
  8. Loosely coupled, distributed, elastic, liberated micro-services: applications are broken into smaller, independent pieces and can be deployed and managed dynamically – not a monolithic stack running on one big single-purpose machine.
  9. Resource isolation: predictable application performance.
  10. Resource utilization: high efficiency and density.

3、安装k8s

3.1、Install kubectl on Linux

https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-on-linux

3.2、

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/500821.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

《基于智能手机采集的PPG信号预测血管老化》阅读笔记

目录 一、论文摘要 二、论文十问 Q1: Q1论文试图解决什么问题? Q2: 这是否是一个新的问题? Q3: 这篇文章要验证一个什么科学假设? Q4: 有哪些相关研究?如何归类?谁是这一课题在领域内值得关注的研究员&#xff1f…

OpenCV的highgui模块

Opencv把用于操作系统、文件系统以及摄像机等硬件设备交互的函数纳入到highgui(High-level Graphical User Interface)模块中,我们可以利用该模块方便地打开窗口、显示图像、读出或写入图像相关的文件(图像和视频)、处理简单的鼠标…

【大数据之Hadoop】二十六、生产调优-HDFS集群压测

测试上传数据到集群和拉取数据的时间。HDFS的读写性能主要受网络和磁盘影响比较大。为了方便测试,将hadoop102、hadoop103、hadoop104虚拟机网络的带宽都设置为100Mbps。100Mbps/812.5M/s。 1 测试HDFS写性能 写测试原理:   向磁盘写测试文件&#x…

MySQL数据库——MySQL下载安装

(1)数据库相关概念: (2)MySQL数据库下载(windows版): 下载地址:MySQL :: Download MySQL Installerhttps://dev.mysql.com/downloads/installer/MySQL :: Download MySQL Installer…

Python小姿势 - Python中的类型检查

Python中的类型检查 在Python中,类型检查是通过内置函数isinstance()来实现的。 isinstance() 函数用于判断一个对象是否是一个已知的类型,类似 type()。 isinstance() 与 type() 区别: type() 不会认为子类是一种父类类型。 isinstance() 会…

【Linux下】线程概念

文章目录 【Linux下】线程概念理解线程线程操作接口线程和进程线程和进程的关系代码验证 线程优点线程缺点 【Linux下】线程概念 理解线程 一般的书上都是这么描述线程的 线程:是在进程内部运行的一个执行分支,属于进程的一部分,粒度要比进…

简单搭建Fabric网络

Fabric网络的搭建分为两个阶段:生成网络拓扑和启动网络。在这里,我们假设要搭建一个具有一个orderer节点和两个peer节点的Fabric网络。 在生成网络拓扑之前,需要准备好以下文件: crypto-config.yaml:用于生成组织和节…

什么牌子蓝牙耳机好用不贵?国产性价比高的蓝牙耳机推荐

相较于有线耳机,无线蓝牙耳机更便携、功能更丰富,不用受到耳机孔与线的限制。那么,什么牌子的蓝牙耳机好用不贵?针对这个问题,我给大家推荐几款国产性价比高的蓝牙耳机,可以当个参考。 一、南卡小音舱Lite…

JAVA代码规范审查

JAVA代码规范审查 1. 添加必要的注释 所有的类都必须添加创建者和创建日期,以及简单的注释描述 方法内部的复杂业务逻辑或者算法,需要添加清楚的注释 一般情况下,注释描述类、方法、变量的作用 任何需要提醒的警告或TODO,也要注…

python基础语法1

基本语句 判断语句 1.if语句 if 语法格式: if 要判断的条件:条件成立时,要做的事情 -------------------------- 执行流程:判断条件为True就执行if的语句体.条件为False就执行if以外的代码. if 案例: age int(input(请输入年龄))print(-----开始-----) if ag…

测试遵循的原则

测试遵循的原则 软件测试是在规定的条件下对程序进行操作,以发现程序错误,衡量软件质量,并对其是否能满足设计要求进行评估的过程。软件测试的基本原则有助于测试人员进行高质量的测试,尽早尽可能多的发现缺陷,并负责跟…

【51单片机】:串口通信基础知识详解

学习目标: 串口通信的基础知识和设置详解。 学习内容:串口通信基础知识 并行通信:多条数据线将数据字节的各个位同时传送*缺点:1.电磁干扰 2.成本高 3.由于传输线较多,长距离传输成本高串口通信:将数据字节…

STL常用梳理——STACK、QUEUE

STL——适配器篇 1、ListSTL list 容器介绍list使用 2、适配器介绍3、Deque容器Stack、Queue适配器实现 1、List STL list 容器介绍 STL list 容器,又称双向链表容器,即该容器的底层是以双向链表的形式实现的。这意味着,list 容器中的元素可…

Lecture 11(Preparation):领域自适应 (Domain Adaptation)

Domain shift: Training and testing data have different distributions. Transfer learning:在A任务上学到的技能,可以被用在B任务上 Domain Adaptation的技术,可以看作是Transfer learning的一种 Domain Adaptation: 第一种情况&#xf…

栈和队列OJ题思路分享之括号匹配(C语言实现)

💓博主CSDN主页:杭电码农-NEO💓   ⏩专栏分类:刷题分享⏪   🚚代码仓库:NEO的学习日记🚚   🌹关注我🫵带你刷更多C语言和数据结构的题!   🔝🔝 栈和队列刷题分享 1. 前言&…

【密码学复习】第七章 公钥加密体制

公钥加密模型 密钥生成过程:接收消息的端系统(如图中的接收者Alice)产生一对密钥(PKA ,SKA ), PKA 是公开钥(用于加密), SKA 是秘密密钥(用于解密). 加密过程:Bob想向…

从C出发 30 --- 指针与堆空间

数组 就是变量的有序集,因此只有可以动态的创建一个变量,就可以动态的创建多个变量了, 堆空间就是一片内存区域,用于动态创建内存变量的区域 void 类型是基础类型,不是基础数据类型,为什么?因为…

MySQL --- 图形化工具DDL表结构操作

一. 图形化工具 1. 介绍 前面学习了DDL中关于数据库操作的SQL语句,在编写这些SQL时,都是在命令行当中完成的。在命令行当中来敲这些SQL语句很不方便,主要的原因有以下 3 点: 没有任何代码提示。(全靠记忆&#xff0…

行为型模式-备忘录模式

备忘录模式 概述 备忘录模式提供了一种状态恢复的实现机制,使得用户可以方便地回到一个特定的历史步骤,当新的状态无效或者存在问题时,可以使用暂时存储起来的备忘录将状态复原,很多软件都提供了撤销(Undo&#xff0…

【自动化测试】Appium环境设置

启动Appium需要的环境配置有些复杂,这里将需要的环境配置整理出来,附上博主亲测有效的教程,有些教程有一点点老了,博主也做了备注,并且有些老一点步骤,博主根据现有的情况做了新的图文教程,大家…