feat(homelab)!: add longhorn, separate gitea_admin from main user

This commit is contained in:
2025-12-26 02:57:21 -08:00
parent f2e0bb5284
commit 27184e60ef
6 changed files with 29 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ repositories:
url: https://itzg.github.io/minecraft-server-charts
- name: gitea-charts
url: https://dl.gitea.com/charts
- name: longhorn
url: https://charts.longhorn.io
releases:
# Load Balancer
@@ -40,6 +42,15 @@ releases:
values:
- values/gitea.yaml
# Storage
- name: longhorn
namespace: longhorn-system
chart: longhorn/longhorn
version: 1.10.1
values:
- defaultSettings:
defaultReplicaCount: 1
# Minecraft
- name: minecraft-main
namespace: minecraft

View File

@@ -23,7 +23,6 @@ gitea:
TYPE: level
admin:
existingSecret: gitea-admin-secret
email: luca_lise@icloud.ca
nodeSelector:
kubernetes.io/hostname: kube

View File

@@ -9,3 +9,4 @@ resources:
- ./routes/minecraft/main.yaml
- ./routes/gitea/ssh.yaml
- ./routes/gitea/http.yaml
- ./routes/longhorn.yaml

View File

@@ -0,0 +1,15 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: longhorn
namespace: longhorn-system
spec:
parentRefs:
- name: traefik-gateway
namespace: kube-system
hostnames:
- "storage.lucalise.ca"
rules:
- backendRefs:
- name: longhorn-frontend
port: 80

View File

@@ -35,6 +35,7 @@
extraFlags = toString [
"--write-kubeconfig-mode \"0644\""
"--disable servicelb"
"--disable local-storage"
];
};