An Ingress is a Kubernetes API resource that provides a stable external endpoint by routing HTTP requests to a service using paths or hostnames. It replaces local port forwarding with a deployment-style traffic entry point. section 8.2.3
Route traffic to a Spin service
A networking.k8s.io/v1 Ingress named nginx sends requests matching the / prefix to the scaling-spin service on port 80. Consequently, /load reaches the service without port forwarding. section 8.2.3
Listing 8.7 Ingress resource
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: scaling-spin
port:
number: 80
Inspect the complete Ingress manifest, including its API version, HTTP rule, prefix path, backend service, and port. section 8.2.3







