Code Monkey home page Code Monkey logo

turing-pi-k8s's Introduction

TuringPi K8S Ansible

This set of Ansible playbooks implements the guide at turingpi.com to setup a K3S cluster on top of a Turing Pi 2 cluster.

Cluster URLs

Getting Started

Prerequisites

  • Python3
  • Ansible

Developng

  1. Clone the repo

  2. cd /path/to/repo

  3. Create a venv

python -m venv /path/to/project/venv
  1. Activate the venv
source /path/to/project/venv/bin/activate
  1. Install venv dependencies
/path/to/project/venv/bin/pip install -r ./requirements.txt

Commands

  1. List all nodes
ansible all -i ./inventory --list-hosts
  1. Ping nodes
ansible all -m ping -i ./inventory.yaml
  1. Apply cluster node role

This role properly sets up nodes in the cluster so they can talk to each other.

ansible-playbook -i ./inventory.yaml ./roles/01-cluster-node.yaml
  1. Apply storage node role

This role configures the ssd to be mounted at /data.

ansible-playbook -i ./inventory.yaml ./roles/02-storage-node.yaml
  1. Apply kubernetes control role

This role conifugres Kubernetes control nodes and enables support for Helm and Arkade.

ansible-playbook -i ./inventory.yaml ./roles/03-kubernetes-control.yaml
  1. Apply kubernetes agent role

This role configures the Kubernetes agent nodes and connects them to the K3S cluster.

ansible-playbook -i ./inventory.yaml ./roles/04-kubernetes-agent.yaml
  1. Apply kubernetes networking role

This role configures metallb in the K3S cluster so you can allocate IP Address to services using a load balancer.

ansible-playbook -i ./inventory.yaml ./roles/05-kubernetes-network.yaml
  1. Apply kubernetes cd role

Configures ArgoCD in the cluster and exposes it on a predefined LB port.

ansible-playbook -i ./inventory.yaml ./roles/07-kubernetes-cd.yaml
  1. Apply kubernetes monitoring role

Configures Prometheus, Grafana, and AlertManager.

ansible-playbook -i ./inventory.yaml ./roles/08-kubernetes-monitoring.yaml

turing-pi-k8s's People

Contributors

kris-evans avatar

Watchers

 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.