Skip to content

⚡ This repo could also be called `services-under-a-couch` since my server resides under my living room's couch and creates, by the same facts, an electric heated chilling spot.

License

Notifications You must be signed in to change notification settings

yoangau/self-hosted-services

 
 

Repository files navigation

Self-hosted services

Create an inventory

Static

# There must be a minimum of 3 controllers and the number must be odd for etcd to work
k3s_cluster:
  hosts:
    raspi:
      vpn_port: 3210
      vpn_ip: 10.10.10.1
      k3s_control_node: true
      labels:
        - dns=true
        - local=true
    big_manager:
      vpn_port: 3211
      vpn_ip: 10.10.10.2
      k3s_control_node: true
      labels:
        - nas=true
        - local=true
    small_manager:
      vpn_port: 3212
      vpn_ip: 10.10.10.3
      k3s_control_node: true
      labels:
        - public=true
        - local=true
    big_server:
      vpn_port: 3213
      vpn_ip: 10.10.10.4
      labels:
        - local=true

Dynamic (AWS)

plugin: aws_ec2
regions:
  - us-east-1
  - us-east-2
filters:
  instance-state-name: running
  tag:Category:
    - home-cloud

Deploy

Run ansible-playbook setup_cluster.yml -i inventory_static.yml -i inventory_ec2.yml -e fqdn=example.com -e display_k8s_dashboard_password=true

Github Actions Setup

Github Container Registry

About

⚡ This repo could also be called `services-under-a-couch` since my server resides under my living room's couch and creates, by the same facts, an electric heated chilling spot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 48.5%
  • Python 46.2%
  • Shell 5.3%