40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# Traefik ingress. Reachable at http://localhost:8080 in the k3d lab.
|
|
#
|
|
# Active Service only -- the preview stays internal so real traffic can't hit
|
|
# an unpromoted version. /metrics is not exposed either.
|
|
#
|
|
# No host, so any Host header matches. A real hostname belongs in the prod
|
|
# overlay.
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: nereus-api
|
|
labels:
|
|
app.kubernetes.io/name: nereus-api
|
|
app.kubernetes.io/part-of: nereus
|
|
spec:
|
|
ingressClassName: traefik
|
|
rules:
|
|
- http:
|
|
paths:
|
|
- path: /api/v1
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: nereus-api-active
|
|
port:
|
|
name: http
|
|
- path: /healthz
|
|
pathType: Exact
|
|
backend:
|
|
service:
|
|
name: nereus-api-active
|
|
port:
|
|
name: http
|
|
- path: /readyz
|
|
pathType: Exact
|
|
backend:
|
|
service:
|
|
name: nereus-api-active
|
|
port:
|
|
name: http
|