摘要: 1、部署一个master02 从master01上拷贝配置、安装、启动文件到master02上 [root@k8s-master01 ~]# scp -r /opt/kubernetes/ 10.16.8.151:/opt [root@k8s-master01 ~]# scp -r /opt/etc 阅读全文
posted @ 2019-11-29 10:55 xw115428 阅读(486) 评论(0) 推荐(0)
摘要: 1、coredns.yaml [root@k8s-master01 yaml]# cat coredns.yaml # Warning: This is a file generated from the base underscore template file: coredns.yaml.bas 阅读全文
posted @ 2019-11-29 10:49 xw115428 阅读(1106) 评论(0) 推荐(0)
摘要: 1、部署ui [root@k8s-master01 yaml]# cat dashboard.yaml # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the " 阅读全文
posted @ 2019-11-29 10:46 xw115428 阅读(397) 评论(0) 推荐(0)
摘要: 1、创建一个授权的yaml文件 [root@k8s-master01 yaml]# cat apiserver-to-kubelet-rbac.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: anno 阅读全文
posted @ 2019-11-29 10:42 xw115428 阅读(1247) 评论(0) 推荐(0)
摘要: 1、安装cni插件 二进制包下载地址:https://github.com/containernetworking/plugins/releases [root@k8s-master01 node]# mkdir cni/bin -p [root@k8s-master01 node]# tar xf 阅读全文
posted @ 2019-11-29 10:33 xw115428 阅读(860) 评论(0) 推荐(0)
摘要: 1、安装docker,在Node节点上面操作 yum安装 yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/lin 阅读全文
posted @ 2019-11-29 10:27 xw115428 阅读(533) 评论(0) 推荐(0)
摘要: 1、下载下载地址:https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md 这个二进制包中包含了master和node的所有组件 2、创建对应的目录,并将二进制包中对应的可执行文件拷贝到对应目录 [root@k8s- 阅读全文
posted @ 2019-11-29 10:13 xw115428 阅读(438) 评论(0) 推荐(0)
摘要: 1、创建CA配置json文件 [root@k8s-master01 k8s]# cat ca-csr.json { "CN": "kubernetes", "key": { "algo": "rsa", "size": 2048 }, "names": [ { "C": "CN", "L": "Hu 阅读全文
posted @ 2019-11-29 10:02 xw115428 阅读(1456) 评论(0) 推荐(0)
摘要: 1、下载安装二进制下载:https://github.com/coreos/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz 1 [root@k8s-master01 ~]# tar xf etcd-v3.3.13-linu 阅读全文
posted @ 2019-11-29 09:57 xw115428 阅读(604) 评论(0) 推荐(0)
摘要: 准备工作需要两套证书,一套k8s通讯使用,一套etcd内部通讯使用 下载证书生成工具 [root@k8s-master01 k8s]# curl -L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 -o /usr/local/bin/cfssl [root 阅读全文
posted @ 2019-11-29 09:47 xw115428 阅读(1439) 评论(0) 推荐(0)