官术网_书友最值得收藏!

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
主站蜘蛛池模板: 耒阳市| 东山县| 崇明县| 临漳县| 峡江县| 隆昌县| 汾西县| 宣城市| 恩平市| 娄底市| 京山县| 双牌县| 吉安县| 高碑店市| 伊宁市| 定西市| 通城县| 郯城县| 龙泉市| 来凤县| 响水县| 玉门市| 宁阳县| 安国市| 惠东县| 保定市| 苍山县| 蓝田县| 朝阳市| 保山市| 南陵县| 独山县| 云和县| 神农架林区| 左权县| 荆门市| 临潭县| 繁昌县| 石门县| 武清区| 张家口市|