feat: lb ipam pool, homelab gateway, homepage httproute

This commit is contained in:
2026-05-08 22:29:42 +02:00
parent a42227c1b7
commit 2fc38bf7de
8 changed files with 61 additions and 1 deletions
@@ -0,0 +1,15 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: homepage
namespace: homepage
spec:
parentRefs:
- name: homelab-gateway
namespace: gateway
hostnames:
- "homepage.net-scope.org"
rules:
- backendRefs:
- name: homepage
port: 3000
@@ -3,7 +3,7 @@ kind: Kustomization
resources:
- namespace.yaml
- rbac.yaml
# - pvc.yaml
- deployment.yaml
- service.yaml
- configmap.yaml
- httproute.yaml
@@ -3,3 +3,4 @@ kind: Kustomization
resources:
- helmrepository.yaml
- helmrelease.yaml
- lbippool.yaml
@@ -0,0 +1,7 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: homelab-pool
spec:
blocks:
- cidr: "192.168.2.50/29"
@@ -0,0 +1,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gateway
namespace: flux-system
spec:
interval: 10m
path: ./clusters/homelab/infrastructure/gateway
prune: true
sourceRef:
kind: GitRepository
name: flux-system
dependsOn:
- name: cilium
@@ -0,0 +1,14 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: homelab-gateway
namespace: gateway
spec:
gatewayClassName: cilium
listeners:
- name: http
protocol: HTTP
port: 80
allowedRoutes:
namespaces:
from: All
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- gateway.yaml
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: gateway