Guia-Tutorial-kubernetes/yaml-del-pelado/11-hello-ingress.yaml

23 lines
415 B
YAML
Raw Normal View History

2022-09-19 18:31:05 +02:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello-app
spec:
rules:
- http:
paths:
- path: /v1
pathType: Prefix
backend:
service:
name: hello-v1
port:
number: 8080
- path: /v2
pathType: Prefix
backend:
service:
name: hello-v2
port:
number: 8080