GithubHelp home page GithubHelp logo

vaibhav-mehta-19 / ansible-kubernetes Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

Setting up kubernetes cluster with the help of ansible playbooks.

ansible kubernetes automation cluster setup

ansible-kubernetes's Introduction

ansible-kubernetes

Setting up kubernetes cluster with the help of ansible playbooks.

How to use this (Setup Instructions):

  1. Make all of your servers ready including the master and the worker nodes and make sure that they are all connected with the same network.
  2. Make an entry of your each hosts in /etc/hosts file for name resolution.
  3. Internet connection must be enabled in all nodes, required packages will be downloaded from kubernetes official yum repository.
  4. Clone this repository into your master node.
  5. There is a file "hosts" available , Just make your entries of your all kubernetes nodes.
  6. Provide your server details in "env_variables" file.
  7. Deploy the ssh key from master node to other nodes for password less authentication using >ssh-keygen. Copy the public key to all nodes including your master node and make sure you are able to login into any nodes without password.
  8. Run "kubernetes_cluster_setup.yml" playbook to setup all nodes and kubernetes master configuration as >ansible-playbook kubernetes_cluster_setup.yml
  9. Run "join_workers_nodes.yml" playbook to join the worker nodes with kubernetes master node after setting up cluster as >ansible-playbook join_workers_nodes.yml
  10. Verify the configuration from master node using >kubectl get nodes

ansible-kubernetes's People

Contributors

vaibhav-mehta-19 avatar

Stargazers

 avatar

Watchers

 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.