本文共 1012 字,大约阅读时间需要 3 分钟。
国内版
一、部署Kubernetes1.13.0(无dashboard)前期准备(all node): #swapoff -a#防火墙关闭!# cat <<EOF > /etc/sysctl.d/k8s.confnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1EOF!# sysctl --system1、解压all node#tar -zxvf k8s_1.13.0.tar.gz2、安装软件包并启动docker服务all node# cd rpm all node# yum localinstall *.rpmall node# systemctl start docker all node# systemctl enable dockerall node# systemctl enable kubelet3、导入镜像all node#cd imageall node# docker load -i k8s.gcr.io.basic_1.13.0.tar.gzgoogle镜像包地址:链接:提取码:nx2a4、安装master节点master#kubeadm init --kubernetes-version=v1.13.0 --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12待kubeadm 自动安装完成master#mkdir -p $HOME/.kubemaster#cp -i /etc/kubernetes/admin.conf $HOME/.kube/configmaster#chown $(id -u):$(id -g) $HOME/.kube/configmaster#kubectl apply -f 4、安装node节点node# kubeadm join ..................................单节点masterK8s1.13.0部署完成(无dashboard)5、查看node是否正常master#kubectl get node转载于:https://blog.51cto.com/12749569/2326009