美文网首页kubernetes本地部署
4. Master节点部署及维护

4. Master节点部署及维护

作者: 一瓶多先生 | 来源:发表于2020-11-12 08:39 被阅读0次

    目录

    初始化目录结构:

    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
    

    相关文章

      网友评论

        本文标题:4. Master节点部署及维护

        本文链接:https://www.haomeiwen.com/subject/bufqbktx.html