update gateway spec

This commit is contained in:
2026-05-18 22:01:18 -05:00
parent 2ed70b4964
commit b45dcea4c3
2 changed files with 40 additions and 14 deletions

View File

@@ -307,22 +307,40 @@ cluster/applications/<app-name>/
### 3. HTTPRoute pattern
Every HTTPRoute needs two annotations for DNS and routing to work:
```yaml
annotations:
external-dns.alpha.kubernetes.io/hostname: <service>.local.mk-labs.cloud
external-dns.alpha.kubernetes.io/target: "10.1.71.90"
```
And a parentRef pointing at the platform Gateway:
Always include all fields explicitly — Cilium defaults `group`, `kind`, `weight`,
and `matches` at reconcile time, causing ArgoCD out-of-sync if omitted.
Full HTTPRoute template:
```yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: <service>
namespace: <app-namespace>
annotations:
external-dns.alpha.kubernetes.io/hostname: <service>.local.mk-labs.cloud
external-dns.alpha.kubernetes.io/target: "10.1.71.90"
spec:
parentRefs:
- name: fastpass-gateway
- group: gateway.networking.k8s.io
kind: Gateway
name: fastpass-gateway
namespace: gateway
sectionName: https
hostnames:
- <service>.local.mk-labs.cloud
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- group: ""
kind: Service
name: <service>
port: <port>
weight: 1
```
### 4. Per-service certificate