k8s/ingress/web-ingress.yaml

30 lines
699 B
YAML
Raw Permalink Normal View History

2022-02-08 10:55:21 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
2022-02-09 00:42:27 +00:00
name: web-ingress
2022-02-08 10:55:21 +00:00
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
2022-02-09 01:02:00 +00:00
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/preserve-trailing-slash: "true"
2022-02-08 10:55:21 +00:00
spec:
rules:
2022-02-09 01:02:00 +00:00
- http:
2022-02-08 10:55:21 +00:00
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 8080
- path: /v2
pathType: Prefix
backend:
service:
name: web2
port:
2022-02-09 01:02:00 +00:00
number: 8080
tls:
- hosts:
2022-02-09 01:08:09 +00:00
- ingress.local