Git Product home page Git Product logo

ansible_deploy_k8s's Introduction

使用ansible部署kubernetes

Dashboard

Dashboard

依赖

  • ansible 2.8.5
  • python 2.7 (jinja2, PyYAML)

前提条件(修改下面文件的主机名和IP)

  • inventory/hosts
  • inventory/group_vars/all/all.yml

部署集群 (v1.16.5版本的kubernetes)

ansible-playbook -i inventory/hosts playbooks/site.yml

查看集群服务状态

ansible-playbook -i inventory/hosts playbooks/site.yml --tags "status"

清理集群

在同一套环境里面部署多次的话,可以先清理集群

ansible-playbook -i inventory/hosts playbooks/clean.yml

升级内核 (Centos7 自带的内核使用k8s有一些bug)

ansible-playbook -i inventory/hosts playbooks/kernel.yml

ansible_deploy_k8s's People

Contributors

onesafe 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.