目录
初始化目录结构:
mkdir -p /srv/kubernetes/bin
mkdir -p /srv/kubernetes/pki
mkdir -p /srv/kubernetes/log
mkdir -p /srv/kubernetes/kubeconfig
安装依赖包:
yum install -y chrony conntrack ipvsadm ipset jq iptables curl sysstat libseccomp wget socat git
安装软件:
DOWNURL='https://storage.googleapis.com/kubernetes-release/release'
#获取最新版本的kubrnetes
GETVERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
#下载kube-apiserver
curl -L ${DOWNURL}/${GETVERSION}/bin/linux/amd64/kube-apiserver -o /srv/kubernetes/bin/kube-apiserver
#下载kube-controller-manager
curl -L ${DOWNURL}/${GETVERSION}/bin/linux/amd64/kube-controller-manager -o /srv/kubernetes/bin/kube-controller-manager
#下载kube-scheduler
curl -L ${DOWNURL}/${GETVERSION}/bin/linux/amd64/kube-scheduler -o /srv/kubernetes/bin/kube-scheduler
cd /srv/kubernetes/bin
chmod +x kube-apiserver kube-controller-manager kube-scheduler
网友评论