#hostnamectl set-hostanme master
#hostnamectl set-hostanme slave
#setenforce 0
#systemctl stop firewalld
#systemctl disable firewalld
#iptables -F
#iptables -X
#iptables -Z
#/user/sbin/iptables-save
#vi /etc/selinux/config
selinux=disabled
#mkdir /opt/centos
#mount -o loop C /mnt/
#cp -rvf /mnt/* /opt/centos
#mount -o loop ch /mnt/
#cp -rvf /mnt/* /opt
#rm -rf /etc/yum.repos.d/*
#vi /etc/yum.repos.d/local.repo
[centos]
name=centos
enabled=1
gpgcheck=0
baseurl=file:///opt/centos
[paas]
name=paas
enabled=1
gpgcheck=0
baseurl=file:///opt/kubernetes-repo
#mkdir /home/repo.bak
#mv /etc/yum.repos.d/* /home/repo.bak
#vi /etc/yum.repos.d/ftp.repo
[centos]
name=centos
enabled=1
gpgcheck=0
baseurl=ftp://master/centos
[paas]
name=paas
enabled=1
gpgcheck=0
baseurl=ftp://master/kubernetes-repo
vi /etc/chrony.conf
server 192.168.10.10 iburst
allow 192.168.10.0/24
systemctl enable chronyd
systemctl restart chronyd
chronyc sources -v
#ssh-keygen
#ssh-copy-id x.x.x.x
#scp k8s_node_install.sh root@192.168.10.20:/opt
#./k8s_harbor_install.sh
浏览器192.168.10.10
#./k8s_image_push.sh
#./k8s_master_install.sh
浏览器192.168.10.10:30000
slave
#./k8s_node_install.sh
#kubectl get node
NFS
master
#yum install nfs-utils rpcbind
#systemctl start rpcbind
#systemctl enable rpcbind
#systemctl start nfs
#systemctl enable nfs
node
#yum install nfs-utils