diff --git a/src/app.html b/src/app.html index 43c1cbb..7ebdbd6 100644 --- a/src/app.html +++ b/src/app.html @@ -9,7 +9,7 @@ %sveltekit.head% - +
%sveltekit.body%
diff --git a/src/lib/images/20240306_234355.jpg b/src/lib/images/20240306_234355.jpg deleted file mode 100644 index a1f76aa..0000000 Binary files a/src/lib/images/20240306_234355.jpg and /dev/null differ diff --git a/src/lib/images/20240321_182057.jpg b/src/lib/images/20240321_182057.jpg deleted file mode 100644 index b90ac7a..0000000 Binary files a/src/lib/images/20240321_182057.jpg and /dev/null differ diff --git a/src/lib/images/asrock.jpg b/src/lib/images/asrock.jpg new file mode 100644 index 0000000..c5533b8 Binary files /dev/null and b/src/lib/images/asrock.jpg differ diff --git a/src/lib/images/rack.jpg b/src/lib/images/rack.jpg new file mode 100644 index 0000000..84154b0 Binary files /dev/null and b/src/lib/images/rack.jpg differ diff --git a/src/lib/rackcase.jpg b/src/lib/rackcase.jpg deleted file mode 100644 index b90ac7a..0000000 Binary files a/src/lib/rackcase.jpg and /dev/null differ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 34a4999..328f04f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -55,8 +55,11 @@ {/each} {/key} - + -
+
-
\ No newline at end of file +
+
+

built and hosted by christian rannes 2024

+
\ No newline at end of file diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 937d07f..70b0010 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -5,7 +5,7 @@
-

Life is good in Copenhagen

+

Life is good in Copenhagen

I live in Copenhagen with my partner and children near the water. We love going on expeditions around the city in our cargo bike, or on my electrical skateboard. When we're not outside I spend a lot of time fiddling around with my homelab, and development projects. You can read more about my projects and homelab under the homelab and portfolio nav. diff --git a/src/routes/homelab/+page.svelte b/src/routes/homelab/+page.svelte index a75846b..a4aa7d2 100644 --- a/src/routes/homelab/+page.svelte +++ b/src/routes/homelab/+page.svelte @@ -1,15 +1,98 @@ -

Homelab

- -
-

Origin and Hardware

-

My interest in “Homelabbing” arose long before I was familiar with the term Homelab. I have always been curious, and drawn towards things that are unfamiliar to me. I am also a builder and problem solver by heart, which has given me a broad understanding of tech and maker-culture.

-

My lab started almost 4 years ago, when I wanted to set up my own DNS server at home, to add network wide ad-block (Pihole). As I learned more about Linux and containerization I quickly got drawn into the hobby of self-hosting web-services.

-

Raspberry Pi's are great, but it takes ages to build docker images, so it wasn’t long before I upgraded it to a Lenovo Tiny M73 workstation with 8gb ram and a 4th gen i5. This was a big step up, which enabled me to host a lot more services and experiment more with building and deploying my owner docker images.

-

As I wanted more storage, and the expansion ports on a mini pc are limited, I upgraded to a slightly larger Mini PC (Asrock Deskmini x300). The specs mentioned 3 m2 slots and 2 sata slots which would be perfect to build a low power NAS as the max power draw less than 50w.

-

I quickly learned that the low power motherboard obviously wasn’t able to power two 10TB Ironwolf HDD’s, so I had to hack up a solution with an external power supply. This was a bit of a mess (See picture below) and the flaky setup also led to occasional smart errors from the HDD array so I knew I had to move to new hardware soon.

- +
+

Homelab

+ +
+
+

Origin and Hardware

+

My interest in “Homelabbing” arose long before I was familiar with the term Homelab. I have always been curious, and drawn towards things that are unfamiliar to me. I am also a builder and problem solver by heart, which has given me a broad understanding of tech and maker-culture.

+

My lab started almost 4 years ago, when I wanted to set up my own DNS server at home, to add network wide ad-block (Pihole). As I learned more about Linux and containerization I quickly got drawn into the hobby of self-hosting web-services.

+

Raspberry Pi's are great, but it takes ages to build docker images, so it wasn't long before I upgraded it to a Lenovo Tiny M73 workstation with 8gb ram and a 4th gen i5. This was a big step up, which enabled me to host a lot more services and experiment more with building and deploying my owner docker images.

+

As I wanted more storage, and the expansion ports on a mini pc are limited, I upgraded to a slightly larger Mini PC (Asrock Deskmini x300). The specs mentioned 3 m2 slots and 2 sata slots which would be perfect to build a low power NAS as the max power draw less than 50w.

+

I quickly learned that the low power motherboard obviously wasn't able to power two 10TB Ironwolf HDD's, so I had to hack up a solution with an external power supply. This was a bit of a mess (See picture below) and the flaky setup also led to occasional smart errors from the HDD array so I knew I had to move to new hardware soon.

+ +

The two HDD's are powered by an external power supply that I had to manually switch on and off when I rebooted the server. The patched cables also led to lots of S.M.A.R.T. errors which is obvious not great.

+

In the beginning of March, I upgraded my motherboard and ram in my main pc, and used the old mb and ram as a base to build my server. I plan to mount everything in a rack when we get more space, so I built the new server in a 2U rack case, which also leaves lots of room for storage upgrades. I used consumer grade hardware to keep idle power low:

+
    +
  • MSI Pro-690-P (Lots of IOMMU groups)
  • +
  • Intel i3-12100f (Low power idle)
  • +
  • 32GB Corsair Vengeance DDR4 3200
  • +
  • 1tb Samsung Evo 970 (Host boot and VM disks)
  • +
  • 512gb Samsung Evo 970 (NAS cache)
  • +
  • 2 x 10TB Seagate Ironwolf (RAID1)
  • +
  • Geforce 1650ti 4gb (for transcoding)
  • +
+ +

The homelab is also connected to two 3D printers, that are running open source custom firmware (klipper) and controlled through a web interface (Mainsail) from any device in the local network. I started with a Ender3, and during my parental leave last year I built my own printer from a open source project called Voron0. The parts are all sourced, and the rest of the parts are 3D printed in ABS+. It took me roughly 40 hours to build it and calibrate it.

+

OS

+

The server is running ProxmoxVE which is great for experimenting, as I can provision development and test environments easily from templates and spin up machines to experiment with Kubernetes without affecting my services. It's also interesting to learn the basics of Proxmox even though virtualization is not necessarily something I will do a deep dive on. It also makes it easy to separate services in LXC containers and virtual machines.

+

VMs and Services

+

Docker Host

+

This VM is my production environment where I run my docker services that have been tested an properly implemented with network volumes and backup.

+
+

Currently I am hosting the following services:

+
    +
  • Traefik

    +

    Reverse Proxy to direct and secure external traffic to external services. Traefik also handles ssl certificates from letsencrypt, as all of my external an internal domains have ssl encryption.

    +
  • +
  • +

    Traefik-bouncer

    +

    Monitors traefik, and bans incoming connection from known threat actors and a set of predefined rules. Also bans for multiple failed login attempts, and monitors logs of all exposed services.

    +
  • +
  • +

    Portfolio web page

    +

    This is my portfolio page, which will soon be available at rannes.dev. I'm using svelte/sveltekit and the docker image is built with nginx to serve the page. It is currently not exposed to the internet as I am still building it.

    +
  • +
  • +

    Crowdsec Security Engine

    +
  • +
  • +

    Prometheus

    +
  • +
  • +

    Grafana

    +
  • +
  • +

    Authelia

    +

    IAM layer with 2FA.

    +
  • +
  • +

    Media Stack

    +
      +
    • Jellyfin
    • +
    • Radarr
    • +
    • Sonarr
    • +
    • Prowlarr
    • +
    • Blazarr
    • +
    • Gluetun
    • +
    • Jellyseerr
    • +
    +
  • +

    Syncthing

    +
  • +

    Gitea

    +

    self-hosted git repository

    +
  • +

    Gitea Runners

    +

    Runners for Continuous deployment.

    +
  • +

    Kuma Uptime

    +
  • +
  • +

    Portainer

    +
  • +
+

Pi-Hole

+

LXC container running Pi-hole dns blocker. This is separate so the network is not affected when servicing other VMs. First this was included in the docker-stack but it created too many issues as I had to boot services in a specific order.

+

For this reason, I am also planning on moving Crowdsec and Traefik to a separate containers.

+

Unraid

+

This VM is running Unraid, which is managing my BTRFS array in Raid1. Upon boot it is loaded from a USB-stick, and runs in the RAM of the VM. I recently moved to unraid as it allows me to add more drives as needed, where as + ZFS is very specific about the size of drives added, and I simply don't have the knowledge (or the will) of storage systems to manage it if I can avoid it.

+

This VM has the SATA controller passed through, for full control of the HDD's.

+
+
\ No newline at end of file