2021-07-15 17:48:31 -06:00
|
|
|
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:
|
2021-07-15 18:42:01 -06:00
|
|
|
- host: p-lao.tk
|
2021-07-15 17:48:31 -06:00
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: app-svc
|
|
|
|
port:
|
|
|
|
number: 8080
|
2021-07-15 18:42:01 -06:00
|
|
|
- host: www.p-lao.tk
|
2021-07-15 17:48:31 -06:00
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: app-svc
|
|
|
|
port:
|
|
|
|
number: 8080
|