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

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
主站蜘蛛池模板: 阳信县| 富顺县| 鄯善县| 通化市| 伊吾县| 三明市| 普安县| 隆化县| 蕉岭县| 洞口县| 土默特右旗| 三亚市| 广安市| 辽源市| 南昌市| 平利县| 子长县| 治多县| 醴陵市| 淮南市| 德格县| 浮梁县| 阿巴嘎旗| 张家口市| 唐海县| 阳江市| 安泽县| 贺兰县| 大足县| 金华市| 崇州市| 达州市| 合江县| 扶风县| 仪陇县| 商洛市| 南皮县| 大化| 綦江县| 六枝特区| 太白县|