GithubHelp home page GithubHelp logo

ahdong2007 / kubernetes-ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trestea/kubernetes-ansible

0.0 2.0 0.0 64 KB

Deploy Kubernetes with ansible

License: GNU General Public License v3.0

Shell 100.00%

kubernetes-ansible's Introduction

Deploy Kubernetes with ansible

This playbook helps you to set up a Kubernetes cluster on a number of Fedora or RHEL/CentOS machines. Doesn't matter how or where or whatever. Real hardware, VMs, honey badger don't care.

Requirements

1、To deploy the Kubernetes environment you will need standard Fedora or RHEL/CentOS system and have root privileges.

2、You will need at least 2 (virtual) machines. One will be configured as the Kubernetes master and the remaining node(s) can be configured as minions or deployment nodes

3、There is currently no support for multiple master Because it involves generating kubernetes key problem, has not yet been resolved.

Setup

1、Configure the host ip and hostname in the inventory file.

2、Configure the cluster option in the group_vars/all.yaml file. If the ETCD service already exists, set the etcd_install option to no. And fill in the etcd_server_ip option already exists ETCD service address.

Run

ansible-playbook -i hosts site.yaml

Check

1、get nodes status

  #kubectl get nodes

2、get cluster status

  #kubectl get componentstatuses

At last

If you encounter any problems during use, please let me know that I will do my best to help you.

kubernetes-ansible's People

Contributors

big-loser avatar

Watchers

James Cloos avatar Mason Hua 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.