GithubHelp home page GithubHelp logo

dakshjain1 / ansible-galaxy_k8smultinodecluster_role Goto Github PK

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

This is an Ansible Galaxy Role to create a Kubernetes Multi Node Cluster, which can be setup on local system, VM or any Cloud Provider.

ansible-galaxy_k8smultinodecluster_role's Introduction

Kubernetes Multi Node Cluster

A role to create a Kubernetes Multi Node Cluster - with 1 Master node & mutiple Worker nodes (by default 2, but scalable). The role can be used to setup the cluster on AWS Cloud.

Requirements

If you already have EC2 instances created (master and worker instances) then you need to manually create the inventory - [master] IP 1 [worker] IP 2 IP 3 Meaning that 1 IP (of master) should have hostgroup name explicitly setup as "master" and rest IPs should have hostgroup name explicitly setup as "worker".

  • If you want to even create the EC2 instances using ansible playbook automatically then you can use this playbook that I have created - AWS EC2 Instance Playbook Go through the README.md of this repo for the requirements to run ec2.yml file. You will need to specify your AWS Access Key & AWS Secret Key.

Role Variables

This role doesn't require any variable to be specified by the user.

Dependencies

This is a stand alone role, that will work as it is without any dependency on other Galaxy roles.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: master
  gather_facts: no
  tasks:
          - command: curl http://ipv4.icanhazip.com
            register: ip
          - debug:
                  var:  ip.stdout

          - name: Call the role
            include_role:
                    name: Dakshjain1.Ansible-Galaxy_K8SMultiNodeCluster_Role
            vars:
                    master_ip: "{{ ip.stdout }}"

- hosts: worker
  gather_facts: no
  tasks:
          - command: curl http://ipv4.icanhazip.com
            register: ip
          - debug:
                  var: ip.stdout
          - name: Call the role
            include_role:
                  name: Dakshjain1.Ansible-Galaxy_K8SMultiNodeCluster_Role

License

BSD

Author Information

This Role is created by Daksh Jain. For any queries, suggestions, corrections please contact here:

Daksh Jain LinkedIn Daksh Jain Medium

I am always open to learn from the best minds !! :)

ansible-galaxy_k8smultinodecluster_role's People

Contributors

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