letsEncryptKubernetes/app/03-ingress.yaml

32 lines
643 B
YAML
Raw Normal View History

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
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
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-svc
port:
number: 8080