kubectl delete node hdss7-22.host.com
cat /etc/docker/daemon.json
{
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.od.com"],
"registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"],
"bip": "172.7.22.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
}
useradd -s /sbin/nologin -M etcd
scp -rp /opt/etcd-v3.1.20 10.4.7.201:/opt/
ln -s /opt/etcd-v3.1.20 /opt/etcd
scp -rp /data/etcd 10.4.7.201:/data/
scp -rp /data/logs 10.4.7.201:/data/
chown -R etcd.etcd /opt/etcd-v3.1.20/
chown -R etcd.etcd /data/etcd/ /data/logs/etcd-server/
yum install supervisor -y
systemctl start supervisord.service
systemctl enable supervisord.service
scp -rp /etc/supervisord.d/* 10.4.7.201:/etc/supervisord.d/
scp -rp /opt/kubernetes-v1.15.4 10.4.7.201:/opt/
ln -s /opt/kubernetes-v1.15.4 /opt/kubernetes
ln -s /opt/kubernetes/server/bin/kubectl /usr/bin/kubectl
scp -rp /data/kubelet 10.4.7.201:/data/
scp /root/ipvs.sh 10.4.7.201:/root/
yum install ipvsadm -y
scp -rp /opt/flannel-v0.11.0 10.4.7.201:/opt/
ln -s /opt/flannel-v0.11.0 /opt/flannel
yum install iptables-services -y
systemctl start iptables.service
systemctl enable iptables.service
iptables-save |grep -i reject
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
iptables -t filter -D INPUT -j REJECT --reject-with icmp-host-prohibited
iptables -t filter -D FORWARD -j REJECT --reject-with icmp-host-prohibited
iptables-save > /etc/sysconfig/iptables
iptables-save |grep -i postrouting
iptables -t nat -D POSTROUTING -s 172.7.22.0/24 ! -o docker0 -j MASQUERADE
iptables -t nat -I POSTROUTING -s 172.7.22.0/24 ! -d 172.7.0.0/16 ! -o docker0 -j MASQUERADE
iptables-save |grep -i postrouting
iptables-save > /etc/sysconfig/iptables
docker pull harbor.od.com/public/pause:latest
docker pull harbor.od.com/public/nginx:v1.7.9
docker pull harbor.od.com/public/dashboard:v1.8.3
docker pull harbor.od.com/public/traefik:v1.7.2
docker pull harbor.od.com/public/dashboard:v1.10.1
docker pull harbor.od.com/public/heapster:v1.5.4
docker pull harbor.od.com/public/coredns:v1.6.1
docker pull harbor.od.com/public/nginx:curl
docker pull harbor.od.com/base/jre8:8u112
docker pull harbor.od.com/app/dubbo-demo-service:master_200605_1708
docker pull harbor.od.com/infra/dubbo-monitor:latest
docker pull harbor.od.com/infra/jenkins:v2.190.3
yum install nfs-utils -y
kubectl label node hdss7-22.host.com node-role.kubernetes.io/master=
kubectl label node hdss7-22.host.com node-role.kubernetes.io/node=