创建两台机器, 分别是master, node
配置为CPUx2, 内存:4096, 硬盘:100
master, node:
# hostnamectl set-hostname master/node
# vi /etc/hosts
/etc/hosts中添加(前面是两台机器的IP)
192.168.200.xx master
192.168.200.xx node
# setenforce 0
# systemctl stop firewalld && systemctl disable firewalld
# iptables -F
# iptables -X
# iptables -Z
# /usr/sbin/iptables-save
master:
# cd /etc/yum.repos.d/
# ls
# rm -rf *
# ls
# vi local.repo
添加
[k8s]
name=k8s
gpgcheck=0
enabled=1
baseurl=file:///opt/kubernetes-repo
master:
# mount -o loop XianDian-PaaS-V2.4.iso /mnt/
# cp -rfv /mnt/* /opt/
# umount /mnt/
# yum install -y vsftpd
# vi /etc/vsftpd/vsftpd.conf
删除一个#并添加anon_root=/opt/
# systemctl restart vsftpd && systemctl enable vsftpd
# yum install -y docker-ce
# systemctl start docker && systemctl enable docker
# vi /etc/sysconfig/docker/daemon.json
添加
{
"insecure-registries" : ["0.0.0.0/0"],
"exec-opts": ["native.cgroupdriver=systemd"]
}
# systemctl restart docker
# cd /opt/images/
# ll *.tar|awk '{print $NF}'|sed -r 's#(.*)#docker load -i \1#' |bash
# cd /opt/docker-compose
# ls
# cp -rfc v1.25.5xxxxxx /usr/local/bin/docker-compose
# cd /opt/harbor
# tar -zxvf harbor-offline-installer-v2.1.0.tgz
# cd harbor
# cp harbor.yml.tmp harbor.yml
修改hostname的值为master的IP
# ./prepare
# ./install.sh --with-clair
# cd /opt
# ./k8s_harbor_install.sh
# ./k8s_image_push.sh
# ./k8s_master_install.sh
# scp k8s_node_install.sh (node的IP地址写这, 没有括号):/root/
node:
# cd
# k8s_node_install.sh
原创的版权均归本人所有,任何人或团体、机构全部转载或者部分转载、摘录,请保留本博客链接或标注来源。
请问可以发下先电PaaS2.
4镜像吗
快递单号、空包代发网站www.dh5u.com