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

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
主站蜘蛛池模板: 津南区| 巧家县| 老河口市| 阿鲁科尔沁旗| 广元市| 家居| 扎兰屯市| 什邡市| 电白县| 濮阳市| 玉屏| 宝坻区| 水城县| 余庆县| 齐齐哈尔市| 玉龙| 大石桥市| 澜沧| 常宁市| 西昌市| 老河口市| 简阳市| 湘潭市| 长治市| 灵武市| 丘北县| 贡觉县| 青河县| 阿鲁科尔沁旗| 蒙自县| 同仁县| 道孚县| 右玉县| 青州市| 淮北市| 怀安县| 高要市| 咸阳市| 沁源县| 霍林郭勒市| 静海县|