GithubHelp home page GithubHelp logo

zyc1gq / kubernetes-onepoint Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 0.0 25 KB

centos7系统一键部署kubernetes ,easy install

Shell 55.04% Python 44.96%
centos7-kubernetes docker sh-kubectl worker-node

kubernetes-onepoint's Introduction

kubernetes-onepoint

centos7系统一键部署kubernetes 1.16环境

环境说明:纯净的centos7环境,cpu核数大于2,内存大于2G,使用root账户进行操作。

功能说明:能够自动关闭防火墙,更换国内yum,docker,kubernetes源,自动配置网络dns,自动下载安装docker,kubelet,kubectl,kubeadm,并自动完成鉴权等相关配置。 只需要完成节点文件配置,并再节点之间拷贝kubernetes-onepoint/文件夹即可

Step 1 配置文件与网卡修改

1.在node_list.json文件里按照文件内的格式进行配置,格式为"ip":"name"
2.再dns文件也按ip name格式填写,可参考文件中的格式。
3.将all.sh中第二行的ens33修改成环境下的网卡。

Step 2 建立master节点

1.将配置好的kubernetes-onepoint/文件夹拷入master节点中。 2.首先给all.sh进行授权chmod +x all.sh;再运行./all.sh
3.过程需要3-5分钟。
4.完成安装后,使用kubectl get nodes进行查看。
5.当前仅支持一个master节点

Step 3 建立worker节点

1.首先将master中的所有文件(kubernetes-onepoint/)拷贝到worker节点中(一定要master中的文件,里面配置了token相关命令)
2.再worker节点中运行:chmod +x node.sh && ./node.sh 3.需要等待一段时间,完成安装后使用kubectl get nodes查看节点信息

当前脚本支持部署单个master与多个worker节点,节点需要提前定义在dns与node_list.json文件中。

kubernetes-onepoint's People

Contributors

zyc1gq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.