Files
website/content/en/examples/service/networking/ingress-wildcard-host.yaml
Christopher M. Luciano 95a77e30db ingress: Update documentation for wildcard hostnames
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-07-07 18:17:25 -07:00

27 lines
498 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-wildcard-host
spec:
rules:
- host: "foo.bar.com"
http:
paths:
- pathType: Prefix
path: "/bar"
backend:
service:
name: service1
port:
number: 80
- host: "*.foo.com"
http:
paths:
- pathType: Prefix
path: "/foo"
backend:
service:
name: service2
port:
number: 80