Coder Social home page Coder Social logo

k3s-ansible-devops's Introduction

What this is

This project is an automated way to install and deploy a kubernetes environment using ansible
It also deploys a webapp with 3 replicas and an Ingress controller as well as a database

At least 2 VMs are needed, but you can add more if you want

System requirements

Execute this script to ensure system requirements

chmod +x setup.sh
bash setup.sh

VMs requirements

All managed nodes in inventory must have:

  • Passwordless SSH access (ssh-copy-id to all the node beforehand) and don't forget access ssh from the master to the master
  • The user ansible-admin must exist on and have admin permissions under sudo
  • The password for the ansible-admin user must be the same across all the VMs

Usage

First copy the sample inventory to inventory.yml.

cp inventory-sample.yml inventory.yml

Second edit the inventory file to match your cluster setup. For example:

k3s_cluster:
  children:
    server:
      hosts:
        192.16.35.11:
    agent:
      hosts:
        192.16.35.12:
        192.16.35.13:

If needed, you can also edit vars section at the bottom to match your environment.

Start provisioning of the cluster using the following command:

ansible-playbook playbook/site.yml -i inventory.yml -K

k3s-ansible-devops's People

Contributors

st0rmingbr4in avatar dereknola avatar geerlingguy avatar stafwag avatar itwars avatar erikwilson avatar zaherg avatar pastequee avatar bubylou avatar rockaut avatar johnthenerd avatar tamsky avatar b-m-f avatar jeffspahr avatar galal-hussein avatar clambin avatar curx avatar roivanov avatar pieterv-icloud-com avatar lentzi90 avatar jon-stumpf avatar jiayihu avatar arpankapoor avatar mhahl avatar xvzf avatar nerdynick avatar ompragash avatar coolp avatar razurac avatar twexler 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.