Code Monkey home page Code Monkey logo

startup-infrastructure's Introduction

startup-infrastructure

This is an Ansible playbook that configures a Kubernetes cluster and deploys a full set of self hosted tools for a new company. After you point a wildcard A record to the cluster, you will be able to access the following tools. The goal of this project is to create a one stop shop for self hosting your infrastructure.

Services

  1. Kanban board - Using Wekan. This is connected to Mongo DB and will be accessable at http://kanban.root_domain
  2. Mysql cluster - Using Presslabs Mysql Operator
  3. MongoDB cluster

Deploy

Requirements for deployment machine (for the machine you're executing the deploy from)

  1. Python
  2. Pip
  3. Pipenv
  4. Docker
  5. SSH access to all nodes you're deploying to.
  6. A standard user with sudo access to all nodes

Requirements for infrastructure (the machines you're deploying to)

  1. Ubuntu or Debian
  2. Internet access

Steps

  1. Copy hosts.example to hosts
    • Put ip addresses under the sections
    • Masters are nodes used for managing a kubernetes cluster. It is recommended to has 3 or 5 masters.
    • Workers are nodes used for running containers. You can have as many as necessary.
  2. Copy group_vars/all.example to group_vars/all
    • This is where a lot of configuration comes in. Please see our documentation.
  3. Run bash supporting-scripts/deploy.sh

Lab environment

You can easily run a lab environment with Vagrant.

Requirements

  1. Install Virtualbox
  2. Install Vagrant
  3. Run vagrant up
  4. Run vagrant ssh client -c 'bash /vagrant/tests/files/run-test-deploy.sh'
  5. Now navigate to any of the services at http://servicename.192.168.254.3.xip.io (for example: http://ceph.192.168.254.3.xip.io)

Development

This project is tested with bash and Vagrant.

Requirements

  1. Install Virtualbox
  2. Install Vagrant
  3. Run bash tests/vagrant-tests.sh

startup-infrastructure's People

Contributors

jcwimer avatar

Watchers

James Cloos avatar  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.