k8s/manifests/03-ingress/web2-ingress.yaml

19 lines
404 B
YAML
Raw Normal View History

2023-06-22 00:31:11 +10:00
apiVersion: networking.k8s.io/v1
2023-06-22 00:31:57 +10:00
kind: Ingress
metadata:
name: example-ingress
2023-06-22 00:40:31 +10:00
namespace: vdk2ch
2023-06-22 00:31:57 +10:00
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
2023-06-22 00:51:59 +10:00
- host: asdf.vdk2ch.ru
2023-06-22 00:31:57 +10:00
http:
paths:
- path: /v2
pathType: Prefix
backend:
service:
2023-06-22 00:51:59 +10:00
name: web2
2023-06-22 00:31:57 +10:00
port:
number: 8080