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,22 @@
|
||||
# HTTP Echo (Gateway API workload)
|
||||
|
||||
**Purpose**
|
||||
- Preserve a tiny HTTP echo `Deployment + Service` as a future GitOps canary.
|
||||
- The current `HTTPRoute` still references the retired `contour-gateway`; do not
|
||||
apply this folder until it is migrated and reviewed against Envoy Gateway.
|
||||
|
||||
**Resources**
|
||||
| File | Description |
|
||||
| --- | --- |
|
||||
| `deployment.yaml` | Two replicas of `hashicorp/http-echo` returning `hello from contour gateway`. |
|
||||
| `service.yaml` | ClusterIP service on port 80 targeted by the route. |
|
||||
| `httproute.yaml` | Gateway API `HTTPRoute` that targets `contour-gateway` and the `http-echo` service. |
|
||||
|
||||
**How to verify**
|
||||
|
||||
Migration and verification are intentionally deferred. Update `parentRefs` to the
|
||||
reviewed Envoy Gateway and choose a hostname covered by its listener before apply.
|
||||
|
||||
**Notes**
|
||||
- This README records the old test intent; the retired Contour manifests are
|
||||
available only in legacy Git history.
|
||||
@@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: http-echo
|
||||
namespace: default
|
||||
labels:
|
||||
app: http-echo
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: http-echo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: http-echo
|
||||
spec:
|
||||
containers:
|
||||
- name: http-echo
|
||||
image: hashicorp/http-echo:0.2.3
|
||||
args:
|
||||
- '-text=hello from contour gateway'
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: http-echo-route
|
||||
namespace: default
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: contour-gateway
|
||||
hostnames:
|
||||
- laptop.ddupan.top
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: http-echo
|
||||
port: 80
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: http-echo
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: http-echo
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 5678
|
||||
Reference in New Issue
Block a user