k8s/manifests/03-ingress/flask-htmx-ingress.yaml

31 lines
752 B
YAML
Raw Normal View History

2023-07-01 23:58:54 +10:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: flask-htmx-ingress
namespace: vdk2ch
annotations:
2023-07-02 00:42:52 +10:00
nginx.ingress.kubernetes.io/rewrite-target: /$1
#nginx.ingress.kubernetes.io/app-root: /
2023-07-01 23:58:54 +10:00
spec:
rules:
- host: master.board.vdk2ch.ru
http:
paths:
2023-07-02 00:42:52 +10:00
- path: /(.*)
2023-07-01 23:58:54 +10:00
pathType: Prefix
backend:
service:
name: flask-htmx-master-service
port:
2023-07-02 00:15:58 +10:00
number: 5000
2023-07-01 23:58:54 +10:00
- host: dev.board.vdk2ch.ru
http:
paths:
2023-07-02 00:42:52 +10:00
- path: /(.*)
2023-07-01 23:58:54 +10:00
pathType: Prefix
backend:
service:
name: flask-htmx-dev-service
port:
2023-07-02 00:15:58 +10:00
number: 5000