44 lines
924 B
YAML
44 lines
924 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
name: makeanyplace-web-ingress
|
|
namespace: default
|
|
spec:
|
|
rules:
|
|
- host: makeanyplace.com
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: makeanyplace-api
|
|
port:
|
|
number: 8000
|
|
path: /api
|
|
pathType: Prefix
|
|
- backend:
|
|
service:
|
|
name: makeanyplace-web-svc
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|
|
- host: www.makeanyplace.com
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: makeanyplace-api
|
|
port:
|
|
number: 8000
|
|
path: /api
|
|
pathType: Prefix
|
|
- backend:
|
|
service:
|
|
name: makeanyplace-web-svc
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|