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 使調(diào)和 a highly available cluster of computers that are connected to work as a single unit.?Kubernetes將一個高度可用的計算機集群協(xié)調(diào)起來,這些計算機作為一個單獨的單元連接到一起工作巨缘。
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?使協(xié)調(diào) all activities?活動性 in your cluster, such as scheduling applications調(diào)度程序, maintaining applications' desired state,維護應用程序的理想狀態(tài) 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.?在集群的節(jié)點上 主容器 調(diào)度 去運行?
The nodes communicate 通訊 with the master using the Kubernetes API, which the master exposes暴露.
節(jié)點使用Kubernetes API與主節(jié)點通信吴叶,
?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的開發(fā)序臂,你可以使用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實現(xiàn)蚌卤,它在本地機器上創(chuàng)建一個VM,并部署一個只包含一個節(jié)點的簡單集群
? Minikube is available for Linux, macOS, and Windows systems. Minikube適用于Linux奥秆、macOS和Windows系統(tǒng)
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.
包括開始、停止构订、狀態(tài)和刪除侮叮。但是豪嚎,在本教程中撩嚼,您將使用一個提供的在線終端,并預先安裝Minikube尼变。
Now that you know what Kubernetes is, let's go to the online tutorial and start our first cluster!
現(xiàn)在您已經(jīng)知道Kubernetes是什么了亥宿,讓我們進入在線教程卸勺,開始我們的第一個集群!
搞定好像minikube很厲害的樣子箩绍,你到時在window上安裝一個試試啊
在阿里云上安裝孔庭,阿里云運行你開虛擬服務嗎
雞生蛋,蛋生雞!圆到!