www-solo-io-topics...
www-solo-io-topics...
Company
Discover the power of
Read the Docs Request a Demo
Solo.io today!
HowKubernetes
Home Topic Series Kubernetes API Gateway can we help you today?
Ingress
Types of Ingress
Single Service Ingress
A single service ingress exposes only one service to external users.
To enable a single service ingress, you must define a default
backend—if the ingress object’s host or path does not match
information in the HTTP message, traffic is forwarded to this
default backend. The default backend does not have any routing
rules.
cluster
Pod
Ingress-managed
client load balancer Ingress routing rule Service
Pod
cluster
Pod
Pod
Ingress-managed
client load balancer Ingress, 178.91.123.132
Pod
Pod
cluster
Pod
Pod
Ingress-managed
client load balancer Ingress, 178.91.123.132
Pod
Pod
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-ingress-example
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: demo-nginx-example
rules:
- http:
paths:
- path: /demofilepath
pathType: Prefix
backend:
service:
name: demoservice
port:
number: 99
apiVersion
kind
metadata
spec
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-Ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: demo.web.com
http:
paths:
- path: /demo-Ingress
pathType: Prefix
backend:
service:
name: demo-Ingress
port: 1919
the rules
the hostname which the rules apply to
if the traffic is HTTP or HTTPs or neither
the path it is watching
the port the traffic is going to get sent to
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-Ingress-split
annotations:
nginx.ingress.kubernetes.io/rewrite-target:
spec:
ingressClassName: nginx
rules:
- host: demo.web.com
http:
paths:
- path: /demo-Ingress
pathType: Prefix
backend:
service:
name: demo-Ingress
port:
number: 1919
- path: /demo-Ingress-split
pathType: Prefix
backend:
service:
name: demo-Ingress-split
port:
number: 2020
BACK TO TOP
Additional Resources
WHITE PAPER
Demystifying Kubernetes Security
Read the White Paper
Series: Kubernetes API Gateway
Related Articles
Learn
Docs
Customers
Products Resource Library
Gloo Gateway Blog
Gloo AI Gateway Newsletters
Gloo Mesh Solo Academy
Spotlight Developer Portal
Contact Solo
Contact Solo.io
Get Support
Contact Sales
Pricing