- Kubernetes for Serverless Applications
- Russ McKendrick
- 427字
- 2021-07-02 19:16:48
About Minikube
One of the things you may have been thinking to yourself when reading the previous chapter is that Kubernetes seems complex. There are a lot of moving parts, which not only need to be configured but also monitored and managed.
I remember when I originally looked at Kubernetes when it was first released before the stable version, and the installation instructions were very long and also things were a little delicate.
Misread a step at the beginning of the installation process and you could find yourself in a lot of trouble later in the installation—it reminded me of when magazines used to contain type in listings for games. If you made a typo anywhere then things would either flat-out not work or crash unexpectedly.
As Kubernetes matured, so did the installation process. Quite quickly a number of helper scripts were developed to aid in launching Kubernetes across various platforms; Minikube is one of these tools.
It has one job, to create a local Kubernetes node. Considering the breadth of features supported by Kubernetes, it has a surprising number of features, such as:
- DNS, NodePorts, and Ingress
- ConfigMaps and Secrets
- A choice of container runtimes; you can use either Docker or rkt
- Persistent Volumes via hostPath
- Dashboards
Kubernetes features that would typically require a public cloud provider, such as AWS, Microsoft Azure, or Google Cloud, or multiple hosts, are not supported. Some of these features are:
- LoadBalancers
- Advanced scheduling policies
This is because Minikube only launches a single node on a virtual machine on your local PC. This shouldn't limit you though; remember that you would only ever want to use Minikube for development and you should never build production services using it. There are a lot more tools, which will be covered in Chapter 6, Installing Kubernetes in the Cloud, more suited to launching production-ready Kubernetes clusters in public clouds or other vendors.
Minikube is made up of two core components:
- libmachine: This library from Docker is used to provision virtual machines on your host machine. It is a core component of Docker Machine as well as Docker for macOS and Docker for Windows.
- localkube: This library, developed and donated to the Minikube project by Redspread (which is now a part of CoreOS), is responsible for deploying and maintaining the Kubernetes node once the virtual machine has been launched.
Rather than talking about what Minikube can do any more, we should look at installing it and then discuss how we can interact with it.
- Java編程全能詞典
- 流處理器研究與設(shè)計(jì)
- 模型制作
- Photoshop CS3圖像處理融會(huì)貫通
- Storm應(yīng)用實(shí)踐:實(shí)時(shí)事務(wù)處理之策略
- Visual Basic.NET程序設(shè)計(jì)
- 網(wǎng)中之我:何明升網(wǎng)絡(luò)社會(huì)論稿
- Containers in OpenStack
- 多媒體制作與應(yīng)用
- R Machine Learning Projects
- SQL Server數(shù)據(jù)庫(kù)應(yīng)用基礎(chǔ)(第2版)
- 生成對(duì)抗網(wǎng)絡(luò)項(xiàng)目實(shí)戰(zhàn)
- 穿越計(jì)算機(jī)的迷霧
- 中文版Photoshop情境實(shí)訓(xùn)教程
- JSP網(wǎng)絡(luò)開(kāi)發(fā)入門與實(shí)踐