Coder Social home page Coder Social logo

kubernetes-ansible's Introduction

Kubernetes Cluster using Ansible

  • Clone repository.
  • Create multiple centos8 servers. One master and many worker. Use vagrant like here
  • Change the “ad_addr” in the env_variables file with the IP address of the Kubernetes master node.
  • Run the following command to setup the Kubernetes Master node.
ansible-playbook setup_master_node.yml
  • Once the master node is ready, run the following command to set up the worker nodes.
ansible-playbook setup_worker_nodes.yml
  • Once the workers have joined the cluster, run the following command to check the status of the worker nodes.
kubectl get nodes

Additional information

  • The IP addresses of the workers and masters added to the /etc/hosts file on all workers and masters as part of the prerequisites.yml playbook, if necessary or in case of DNS issues make sure the addresses have been added to /etc/hosts file.

Reference:

kubernetes-ansible's People

Contributors

tpmckay2 avatar benipeled avatar ctienshi avatar rafilkmp3 avatar edib 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.