Code Monkey home page Code Monkey logo

colfax-ops's Introduction

Colfax Ops

Validated

Homelab GitOps on Kubernetes, powered by ArgoCD and managed by Github Actions. ๐Ÿš€

Table of Contents

Building the Cluster from Scratch

This virtual Kubernetes build consists of a 1 machine running Proxmox with 15 cores and 48 gigs of ram. This machine will be split into 3 VMs, 1 control plane and 2 worker nodes. These virtual machines will be managed with terraform and ansible. Eventually another worker node will be added through Vagrant and managed through ansible as well.

Cluster Build Steps

Much of the initial cluster setup has been modified from this repo, but updated for more modern versions of Kubernetes and modified Ansible playbooks.

  • Run virtual-k8s/promox-k8s/proxmox/terraform against Promox server, setting up 1 control-plane and 2 worker nodes. The apply takes about 4.5 minutes.

    โœ๏ธ Confgiruation Edits

    • In the Terraform variables.tf file, you'll want to update the the variables here with connection info to your Proxmox api.

    • You also may want to change IP address and the virtual machine specs in the main.tf file to suit your needs.

    In the virtual-k8s/proxmox-k8s/proxmox/terraform/ directory, run the following.

    terraform init
    terraform plan
    terraform apply
  • Once the Terraform apply completes we'll need to setup the Ansible inventory with the nodes we created via Terraform. virtual-k8s/proxmox-k8s/

  • This will install kubeadm and other utilities necisarry for standing up the cluster. From the virtual-k8s/proxmox-k8s/proxmox/ directory run the following.

    ansible-playbook -i ansible/inventory.yaml ansible/bootstrap.yaml -K

    โš ๏ธ This step will generate your first kube config, make sure to properly manage the admin.conf file.

Cluster Configuration

  • Install MetalLB through ansible, for whatever reason this works better than anything else. MetalLB allows us to establish an IP range we can later use as `LoadBalancer`` IP addresses.
    ansible-playbook -i ansible/inventory.yaml ansible/metallb.yaml -K
  • Install Kube Seal, follow the README.md
  • Installed ArgoCD, follow the README.md.

Cluster Management

Cluster applications are managed through ArgoCD. Most applications target the main branch of this repo. For more information on setting up a new ArgoCD app, check out the local ArgoCD README.md.

Current Applications

App In Use Auto Sync Enabled
ArgoCd โœ… โœ…
Cert Manager โœ… โœ…
Ingress Private โœ… โœ…
Ingress Public โœ… โœ…
Loki โ›”๏ธ โ›”๏ธ
NFS-Client โœ… โœ…
Prometheus Stack โœ… โœ…
DynDNS โœ… โœ…
Github Runners โœ… โœ…

colfax-ops's People

Contributors

politeauthority avatar

Watchers

 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.