kubenate翻译--Tutorials教程-Kubernetes Basics基础- Using Minikube to Create a Cluster

Using Minikube to Create a Cluster

Objectives  目的

Learn what a Kubernetes cluster is. 了解Kubernetes集群是什么。

Learn what Minikube is. 学习Minikube是什么。

Start a Kubernetes cluster using an online terminal. 使用一个在线终端启动一个Kubernetes集群。

Kubernetes Clusters Kubernetes集群


Kubernetes Clusters  什么是Kubernetes集群

Kubernetes coordinates 使调和 a highly available cluster of computers that are connected to work as a single unit. Kubernetes将一个高度可用的计算机集群协调起来,这些计算机作为一个单独的单元连接到一起工作。

The abstractions抽象 in Kubernetes allow you to deploy containerized applications to a cluster without tying them specifically to individual 个体machines.Kubernetes的抽象允许您将容器化的应用程序部署到集群中,而不需要将它们与单独的机器绑定在一起。

 To make use of this new model of deployment, applications need to be packaged in a way that decouples them from individual hosts为了使用这种新的部署模型,应用程序需要以一种将它们从单个主机中分离出来的方式进行打包。

: they need to be containerized.需要集装箱化

Containerized applications are more flexible and available than in past deployment models, where applications were installed directly onto specific machines as packages deeply integrated整合 into the host主机. Kubernetes automates 使自动化 the distribution 分配 and scheduling of application containers across a cluster in a more efficient way. Kubernetes is an open-source platform and is production-ready.

A Kubernetes cluster consists of two types of resources:

The Master coordinates the cluster

Nodes are the workers that run applications


Cluster Diagram  集群图


master

node 

node processes 进程

The Master is responsible 负责 for managing the cluster. 集群管理。 The master coordinates 使协调 all activities 活动性 in your cluster, such as scheduling applications调度程序, maintaining applications' desired state,维护应用程序的理想状态 scaling applications扩展应用程序, and rolling out new updates.推出新的更新。

A node is a VM or a physical computer that serves as a worker machine in a Kubernetes cluster. Each node has a Kubelet, which is an agent for managing the node and communicating交流  with the Kubernetes master. The node should also have tools for handling container operations, such as Docker or rkt. A Kubernetes cluster that handles production traffic 交通 should have a minimum of three nodes.

When you deploy applications on Kubernetes, you tell the master to start the application containers. 当您在Kubernetes上部署应用程序时,请告诉主人启动应用程序容器

 The master schedules the containers to run on the cluster's nodes. 在集群的节点上 主容器 调度 去运行 

The nodes communicate 通讯 with the master using the Kubernetes API, which the master exposes暴露.

节点使用Kubernetes API与主节点通信,

 End users can also use the Kubernetes API directly to interact with the cluster

终端用户还可以直接使用Kubernetes API与集群交互。.

A Kubernetes cluster can be deployed on either physical or virtual machines.Kubernetes集群可以部署在物理或虚拟机上

 To get started with Kubernetes development, you can use Minikube 

为了开始Kubernetes的开发,你可以使用Minikube

Minikube is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node.Minikube是一款轻量级的Kubernetes实现,它在本地机器上创建一个VM,并部署一个只包含一个节点的简单集群

  Minikube is available for Linux, macOS, and Windows systems. Minikube适用于Linux、macOS和Windows系统

The Minikube CLI provides basic bootstrapping operations for working with your cluster, Minikube CLI提供了与集群一起工作的基本启动操作,

including start, stop, status, and delete. For this tutorial, however, you'll use a provided online terminal with Minikube pre-installed.

包括开始、停止、状态和删除。但是,在本教程中,您将使用一个提供的在线终端,并预先安装Minikube。

Now that you know what Kubernetes is, let's go to the online tutorial and start our first cluster!

现在您已经知道Kubernetes是什么了,让我们进入在线教程,开始我们的第一个集群!


搞定好像minikube很厉害的样子,你到时在window上安装一个试试啊

在阿里云上安装,阿里云运行你开虚拟服务吗

鸡生蛋,蛋生鸡!!

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 220,137评论 6 511
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,824评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,465评论 0 357
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,131评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,140评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,895评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,535评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,435评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,952评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,081评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,210评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,896评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,552评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,089评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,198评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,531评论 3 375
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,209评论 2 357

推荐阅读更多精彩内容