Coder Social home page Coder Social logo

cluster_setup's Introduction

#Cluster Setup This guide is for setting up a kubernetes enabled cluster that is enabled with glusterfs and an installation of gogs

Base OS

Start with fedora 24, download from here https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/24/Server/x86_64/iso/Fedora-Server-netinst-x86_64-24-1.2.iso Create root & userspace accounts

$ cd /tmp
$ dnf install -y git
$ git clone https://github.com/zefyrr/cluster_setup
$ cd cluster_setup
$ ./base_install.sh

Node setup

Clone installation

Rename hosts

Rename /etc/hostname to:

  • master.local
  • worker00.local

Reboot and check if master and worker are reachable from each other:

  • from master
    $ ping worker00
  • from worker00
    $ ping master

GlusterFS

$ gluster peer probe worker00
$ gluster volume create gv0 replica 2 master:/gfs/gv0 worker00:/gfs/gv0 force
$ gluster volume start gv0

Kubernetes

Clone kubernetes-contrib on master
Follow guide here - http://kubernetes.io/v1.1/docs/getting-started-guides/fedora/fedora_ansible_config.html

$ git clone https://github.com/kubernetes/contrib
$ cd contrib/ansible
$ cp inventory.example.ha inventory

Edit inventory

$ vim inventory
$ vim ~/contrib/ansible/group_vars/all.yml
$ cd ~/contrib/ansible/
$ ./setup.sh

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.