Giter VIP home page Giter VIP logo

vishnuatrai / kubernetes-and-ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learnitguide/kubernetes-and-ansible

0.0 1.0 0.0 45 KB

This repository has set of ansible playbooks created to setup a kubernetes cluster fully automated with one master and two worker nodes. This will work on physical servers, virtual machines, aws cloud, google cloud or any other cloud servers. This has been tested and verified on Centos 7.3 64 bit operating systems.

Home Page: https://www.learnitguide.net

kubernetes-and-ansible's Introduction

kubernetes-and-ansible

This repository has set of ansible playbooks created to setup a kubernetes cluster fully automated with one master and multiple worker nodes. This will work on physical servers, virtual machines, aws cloud, google cloud or any other cloud servers. This has been tested and verified on Centos 7.3 64 bit operating systems. Also you can refer this link for manual configuration https://www.learnitguide.net/2018/08/install-and-configure-kubernetes-cluster.html

How to use this (Setup Instructions):

  1. Make your servers ready (one master node and multiple worker nodes).

  2. Make an entry of your each hosts in /etc/hosts file for name resolution.

  3. Make sure kubernetes master node and other worker nodes are reachable between each other.

  4. Internet connection must be enabled in all nodes, required packages will be downloaded from kubernetes official yum repository.

  5. Clone this repository into your master node.

    git clone https://github.com/learnitguide/kubernetes-and-ansible.git

    once it is cloned, get into the directory

    cd kubernetes-and-ansible/centos

  6. There is a file "hosts" available in "centos" directory, Just make your entries of your all kubernetes nodes.

  7. Provide your server details in "env_variables" available in "centos" directory.

  8. Deploy the ssh key from master node to other nodes for password less authentication.

    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.

  9. Run "settingup_kubernetes_cluster.yml" playbook to setup all nodes and kubernetes master configuration.

    ansible-playbook settingup_kubernetes_cluster.yml

  10. Run "join_kubernetes_workers_nodes.yml" playbook to join the worker nodes with kubernetes master node once "settingup_kubernetes_cluster.yml" playbook tasks are completed.

    ansible-playbook join_kubernetes_workers_nodes.yml

  11. Verify the configuration from master node.

    kubectl get nodes

What are the files this repository has?:

ansible.cfg - Ansible configuration file created locally.

hosts - Ansible Inventory File

env_variables - Main environment variable file where we have to specify based on our environment.

settingup_kubernetes_cluster.yml - Ansible Playbook to perform prerequisites ready, setting up nodes, configure master node.

configure_worker_nodes.yml - Ansible Playbook to join worker nodes with master node.

clear_k8s_setup.yml - Ansible Playbook helps to delete entire configurations from all nodes.

playbooks - Its a directory holds all playbooks.

Who we are?

We (learnitguide.net) provide you all complete step by step procedures, How to, Installations, configurations, Implementations, documentations, on-line trainings, easy guides on Linux, Cloud Computing, Openstack, Puppet, Chef, Ansible, Devops, Docker, Kubernetes, Linux clusters, VCS Cluster, Virtualizations and other technologies

For more updates, stay connect with us on

Youtube Channel : https://www.youtube.com/learnitguide

Facebook : http://www.facebook.com/learnitguide

Twitter : http://www.twitter.com/learnitguide

Visit our Website : https://www.learnitguide.net

kubernetes-and-ansible's People

Contributors

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