- Getting Started with Kubernetes(Second Edition)
- Jonathan Baier
- 141字
- 2021-07-02 22:51:25
Installing Kubernetes components (kubelet and kubeadm)
Next we will need to SSH into all four of the instances and install the Kubernetes components.
As root, perform the following steps on all four instances:
1. Update packages and install the apt-transport-https package so we can download from sources that use HTTPS:
$ apt-get update
$ apt-get install -y apt-transport-https
2. Install the Google Cloud public key:
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg |
apt-key add -
3. Next, create a source list for the Kubernetes package downloads with your favorite editor:
$ vi /etc/apt/sources.list.d/kubernetes.list
4. Use the following as contents for this file and save:
deb http://apt.kubernetes.io/ kubernetes-xenial main
Listing 1-1. /etc/apt/sources.list.d/kubernetes.list
5. Update your sources once more:
$ apt-get update
6. Install Docker and the core Kubernetes components:
$ apt-get install -y docker.io
$ apt-get install -y kubelet kubeadm kubectl kubernetes-cni
推薦閱讀
- 32位嵌入式系統(tǒng)與SoC設(shè)計導(dǎo)論
- Big Data Analytics with Hadoop 3
- 流處理器研究與設(shè)計
- 統(tǒng)計策略搜索強(qiáng)化學(xué)習(xí)方法及應(yīng)用
- 嵌入式操作系統(tǒng)
- Hands-On Reactive Programming with Reactor
- 從零開始學(xué)Java Web開發(fā)
- 網(wǎng)絡(luò)脆弱性掃描產(chǎn)品原理及應(yīng)用
- 基于Proteus的PIC單片機(jī)C語言程序設(shè)計與仿真
- 漢字錄入技能訓(xùn)練
- Visual Basic項目開發(fā)案例精粹
- PostgreSQL High Performance Cookbook
- 智能座艙之車載機(jī)器人交互設(shè)計與開發(fā)
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- 設(shè)計中的人因:34個設(shè)計小故事