32 lines
645 B
YAML
32 lines
645 B
YAML
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: ingress
|
||
|
namespace: app
|
||
|
annotations:
|
||
|
kubernetes.io/ingress.class: nginx
|
||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: p-lao.com
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: app-svc
|
||
|
port:
|
||
|
number: 8080
|
||
|
- host: www.p-lao.com
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: app-svc
|
||
|
port:
|
||
|
number: 8080
|