GithubHelp home page GithubHelp logo

lionkube's Introduction

LionKube

Reference to install and configure a Kubernetes cluster

  1. Clone this repo to your intended master node machine
  2. Copy xx-<CONFIG>.template.sh to xx-<CONFIG>.sh and update accordingly to your needs.
  3. Set strict permissions with chmod 700 -R config/.

Components

Below components are basic building blocks to provide a fully functional cluster.

Services

Following services are the actual services I want to host on the cluster.

  • Grafana: Dashboard for cluster monitoring and home temperature monitoring
  • Guacamole: Remote desktop gateway for SSH hosts
  • IMAP Alerter: Sends a notification to my main account, in case there is a mail on a secondary account
  • IMAP Save attachments (ISA): Save all attachments which are sent to a mailbox to Nextcloud (or any other Rsync supported storage)
  • Monitor Temp: InfluxDB to store my temperature at home. Temperature is measured with ESP32's and broadcasted over MQTT. Telegraf consumes the data and inserts it into this InfluxDB. Results are shown on a Grafana dashboard.
  • Monitoring: Prometheus deployment to monitor the cluster
  • Nextcloud: Private cloud to store files, contacts, calendars and tasks
  • OpenVPN: Protects internet traffic on insecure networks
  • Passit: Shared password manager

Scheduled jobs

Continuous

  • Every 5 mins: Nextcloud cron.php (services/Nextcloud/50-nextcloud.yml: cron)
  • Every 10 mins: Nextcloud generate previews (services/Nextcloud/50-nextcloud.yml: cron)

01:00 Daily application jobs

  • None

02:00 Prepare backup

  • 02:00 Dump Nextcloud DB (services/Nextcloud/70-backup-mariadb.yml)
  • 02:05 Dump Nextcloud calendars and contacts (services/Nextcloud/50-nextcloud.yml: backup-calcard)
  • 02:15 Dump Passit DB (services/Passit/71-backup-postgresql.yml)

03:00 Perform backup

  • 03:00 Run global Borgmatic (services/Borgmatic/30-borgmatic.yml)
  • 03:30 Run Borgmatic for Nextcloud (services/Nextcloud/80-borgmatic.yml)

04:00 Perform application updates

  • 04:30 Update all Nextcloud apps (services/Nextcloud/50-nextcloud.yml)

System tasks

  • None

Big thanks to

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.