29 lines
904 B
YAML
29 lines
904 B
YAML
# Routes requests for demo.ahmza.com through ingress-nginx (docs/11-ingress.md)
|
|
# to the demo Service's ClusterIP, on ingress-nginx's one shared address
|
|
# (10.10.60.12) instead of this app having its own dedicated MetalLB address.
|
|
#
|
|
# No ingressClassName is set here because apps/ingress-nginx/values.yaml
|
|
# marks its IngressClass as this cluster's default — the same "don't repeat
|
|
# yourself" convenience Longhorn gives PVCs that don't name a
|
|
# storageClassName.
|
|
#
|
|
# No TLS yet — see docs/12-cert-manager.md for adding a real HTTPS
|
|
# certificate for this exact hostname.
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: demo
|
|
namespace: demo
|
|
spec:
|
|
rules:
|
|
- host: demo.ahmza.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: demo
|
|
port:
|
|
number: 80
|