26 lines
714 B
YAML
26 lines
714 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: hearth-api
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.middlewares: services-hearth-api-strip@kubernetescrd
|
|
# Owns the certificate until the web ingress exists; the web ingress then reuses hearth-greboh-dev-tls.
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
spec:
|
|
ingressClassName: traefik
|
|
tls:
|
|
- hosts:
|
|
- hearth.greboh.dev
|
|
secretName: hearth-greboh-dev-tls
|
|
rules:
|
|
- host: hearth.greboh.dev
|
|
http:
|
|
paths:
|
|
- path: /api
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: hearth-api
|
|
port:
|
|
name: http
|