Skip to content

Checkins for a raspberry pi setup I'm playing around with.

License

Notifications You must be signed in to change notification settings

andrewpollack/pi-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Infrastructure

Checkins for a raspberry pi setup and k3s cluster I'm playing around with.

Setup

Ansible install: $ sudo apt install ansible-core

Terraform install: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli#install-terraform

Required non-checked files:

  • ansible/inventory/pi:
    [common]
    <FILL IN>
    
    [artifactors]
    <FILL IN>
    
    [all:vars]
    ansible_python_interpreter=/usr/bin/python3
    
    
  • ansible/roles/common/vars/vars.yml:
    pub_ssh_key_path: <FILL IN>
    
  • ansible/roles/workers/vars/vars.yml:
    k3s_token: <FILL IN>
    k3s_url: <FILL IN>
    
  • terraform/nexus/local.tfvars:
    nexus_url = <FILL IN>
    nexus_username = <FILL IN>
    nexus_password = <FILL IN>
    nexus_docker_repo_port = <FILL IN>
    

What's hosted?

Screenshot from 2024-09-28 15-54-16

Quick and dirty script for randoomly selecting and rendering a months worth of recipes. Deployed as a Deployment+NodePort Service so I can bring up the website locally from my phone or laptop (whichever is more convenient at the time).

Recipes are stored in a JSON file in a private repository shared with my partner. This repo has CD setup to push the JSON file's latest state to S3, which is then pulled by this script to make sure recipes are populated. While we could just pull from the GitHub repo itself, CD in this way is far more fun!

Screenshot from 2024-09-28 13-27-38

Can I see the cluster?

Sure! Mind the dust 😹 image_123650291