Files
argocd-apps/apps/base/kanidm/httproute.yaml
T
unkinben 9df835dc52
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
fix(gateways): add explicit group/kind/weight to all HTTPRoute refs
ArgoCD diffs against live state where k8s defaults these fields in:
- parentRefs: group=gateway.networking.k8s.io, kind=Gateway
- backendRefs: group="", kind=Service, weight=1

Matches the pattern from #153 (certificateRefs).
2026-05-24 20:30:14 +10:00

30 lines
637 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: kanidm-http-redirect
namespace: kanidm
labels:
app.kubernetes.io/name: kanidm
app.kubernetes.io/instance: kanidm
spec:
hostnames:
- kanidm.k8s.syd1.au.unkin.net
- auth.unkin.net
- au.auth.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: kanidm
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
matches:
- path:
type: PathPrefix
value: /