Establish clean homelab infrastructure baseline
Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Traefik Gateway API helpers
|
||||
|
||||
- Define the GatewayClass/Gateway that Traefik's controller expects so later HTTPRoutes can bind to it.
|
||||
- All manifests live here for GitOps sync; the Gateway uses the `traefik` controller name (`traefik.io/gateway-controller`) that k3s bundled Traefik advertises.
|
||||
- Apply with:
|
||||
```bash
|
||||
kubectl apply -f ~/services/archive/traefik/gatewayclass.yaml
|
||||
kubectl apply -f ~/services/archive/traefik/gateway.yaml
|
||||
```
|
||||
- Once accepted you can add HTTPRoute objects (e.g., `~/services/apps/http-echo/httproute-traefik.yaml`) targeting the Gateway.
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: traefik-gateway
|
||||
namespace: default
|
||||
spec:
|
||||
gatewayClassName: traefik
|
||||
listeners:
|
||||
- name: http
|
||||
protocol: HTTP
|
||||
port: 80
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
kinds:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: HTTPRoute
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: GatewayClass
|
||||
metadata:
|
||||
name: traefik
|
||||
spec:
|
||||
controllerName: traefik.io/gateway-controller
|
||||
Reference in New Issue
Block a user