02 2020 档案
摘要:[root@linux-node1 opt]# kubectl run nignx --image=nginx --port=80 --replicas=3 [root@linux-node1 opt]# kubectl get pods -o wide NAME READY STATUS REST
阅读全文
摘要:多master-nginx-keepalived配置完成后。需要修改node连接apiserver地址 1、在每一台node节点中修改 [root@linux-node2 cfg]# pwd /opt/kubernetes/cfg #修改一下配置文件地址我的虚拟vip192.168.56.17 bo
阅读全文
摘要:我的第二个master01节点ip 192.168.56.14 1、在master01节点执行,直接拷贝整个目录就行 [root@linux-node1 opt]# scp -r /opt/* root@192.168.56.14:/opt/ root@192.168.56.14's passwor
阅读全文
摘要:1、在node01执行,直接拷贝配置文件 #配置文件 [root@linux-node2 ~]# scp -r /opt/kubernetes root@192.168.56.13:/opt/ root@192.168.56.13's password: flanneld 100% 235 599.
阅读全文
摘要:1、在master节点执行 生成bootstrap.kubeconfig、kube-proxy.kubeconfig配置文件 # 设置客户端认证参数 #token 配置文件在/opt/kubernetes/cfg/token.csv文件里面,可以重上面博客找 kubectl config set-c
阅读全文
摘要:1、在maser执行、生成认证文件 [root@linux-node1 k8s-cert]# cat k8s-cert.sh cat > ca-config.json <<EOF { "signing": { "default": { "expiry": "87600h" }, "profiles"
阅读全文
摘要:1、写入分配的子网段到etcd,供flanneld使用 [root@linux-node1 ssl]# pwd /opt/etcd/ssl [root@linux-node1 ssl]# /opt/etcd/bin/etcdctl --ca-file=ca.pem --cert-file=serve
阅读全文
摘要:1、环境准备 准备三台服务器 CentOS 7.4 master 192.168.56.11 node01 192.168.56.12 node02 192.168.56.13 etcd 二进制包下载地址 https://github.com/etcd-io/etcd/releases 上传etcd
阅读全文