GithubHelp home page GithubHelp logo

nareshganesan / k8s-app-templates Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 47 KB

Kubernetes installation using kubeadm on ubuntu

License: MIT License

Python 10.62% Shell 89.38%
kubernetes kubeadm cluster heapster monitoring dashboard

k8s-app-templates's Introduction

Kubernetes practice ( ๐Ÿšง WIP )

I'm a newbie trying to make my way around Kubernetes, I've been learning and documenting the work. For kubernetes installation, I've been using either kubeadm or minikube for all the experiments. Please feel free to leave a comment or raise an issue here.

  • Dashboard
  • Monitoring - Heapster
  • Ingress controller - nginx-ingress-controller / traefik ingress controller
  • Auto TLS provisioning - lets encrypt
  • Persistant volume - Rook

Note: All the scripts have been tested only on Ubuntu 16.04 (Xenial Xerus), Kubernetes v1.8.1, kubeadm v1.8.1.

Installation (Kubernetes-Ubuntu-Baremetal)

$ git clone https://github.com/nareshganesan/kubernetes-practice.git
$ git checkout -b dev origin/dev; cd setup;
$ sudo bash setup/install.bash

Setup

To setup a kubernetes cluster:

$ sudo bash start.bash -n node_type
# n - master / node
# t (optional) - token to join an existing kubernetes cluster
# i (optional) - master ip address (host:port) of cluster
# d (optional) - discovery token to join the cluster

Note: (optional) If you want to schedule pods to master node.

# this will make kubernetes schedule pods on master node
$ kubectl taint nodes --all node-role.kubernetes.io/master-

Application development

This is the most fun part of kubernetes, where we simply template the apps, deploy it inside containers, wrap it in service and expose it to outside world. Once we deploy an app as service, kubernetes takes care of the scaling, redundancy management and monitoring the apps.

# apps/ - folder contains quick start template for well known tools.  

To know more about the app templates, see

TODO

  • Kubernetes Dashboard
  • RBAC custom webhook authentication (Github Auth)
  • Custom Authorization for resource types
  • Load balancer config automation
  • Custom cluster creation template (YAML's)
  • Auto backup configs, secrets, data to cloud object store. (S3, Cloud Storage, Azure Storage, Digital Ocean object storage)
  • CI
  • CPU / Memory monitoring (Heapster)

TODO:app templates

Servers

  • nginx
  • apache
  • tornado
  • uwsgi

static

  • Hugo
  • Jekyll
  • Drupal
  • Wordpress

Applications

  • flask
  • go-gin
  • django
  • Elixir
  • Phoenix
  • Laravel
  • Php-slim
  • Symfony

Distributed tools

  • celery
  • nsq
  • apache-spark
  • apache-kafka

DB (single, cluster)

  • MySQL
  • Postgres
  • MariaDB
  • Cassandra
  • ElasticSearch
  • MongDB
  • Redis

Object storage

  • minio

๐ŸŽ‰ โœจ ๐Ÿ’ฅ this is going to be a fun project.

k8s-app-templates's People

Contributors

nareshganesan avatar

Watchers

 avatar  avatar

k8s-app-templates's Issues

setup: start.bash script change ownership not permitted

setup/start.bash - script

$ su - $user -c 'mkdir -p $HOME/.kube';
$ su - $user -c 'echo "$HOME/.kube/config"' | xargs -i cp /etc/kubernetes/admin.conf {};
$ su - $user -c 'chown $(id -u):$(id -g) $HOME/.kube/config';  # - following has error
# Error
chown: changing ownership of '/home/ng/.kube/config': Operation not permitted

fix soon!

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.