2025-01-30 10:08:13 -05:00
|
|
|
---
|
|
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
|
|
kind: Gateway
|
|
|
|
metadata:
|
|
|
|
name: homelab-gateway
|
|
|
|
namespace: homelab
|
|
|
|
spec:
|
|
|
|
gatewayClassName: traefik
|
|
|
|
listeners:
|
|
|
|
- allowedRoutes:
|
|
|
|
namespaces:
|
|
|
|
from: Selector
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
homelab-access: "true"
|
|
|
|
name: web
|
|
|
|
port: 8000
|
|
|
|
protocol: HTTP
|
|
|
|
- allowedRoutes:
|
|
|
|
namespaces:
|
|
|
|
from: Selector
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
homelab-access: "true"
|
|
|
|
name: websecure
|
|
|
|
port: 8443
|
|
|
|
protocol: HTTPS
|
|
|
|
tls:
|
|
|
|
mode: Terminate
|
|
|
|
certificateRefs:
|
|
|
|
- kind: Secret
|
2025-01-31 16:14:03 -05:00
|
|
|
name: wildcard-leechpepin-tls
|
2025-01-30 10:08:13 -05:00
|
|
|
- allowedRoutes:
|
|
|
|
namespaces:
|
|
|
|
from: Selector
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
homelab-access: "true"
|
|
|
|
name: postgres
|
|
|
|
port: 5432
|
|
|
|
protocol: TCP
|
|
|
|
- allowedRoutes:
|
|
|
|
namespaces:
|
|
|
|
from: Selector
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
homelab-access: "true"
|
|
|
|
name: redis
|
|
|
|
port: 6379
|
|
|
|
protocol: HTTP
|
|
|
|
- allowedRoutes:
|
|
|
|
namespaces:
|
|
|
|
from: Selector
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
homelab-access: "true"
|
|
|
|
name: ollama
|
|
|
|
port: 11434
|
|
|
|
protocol: HTTP
|