kube-exam/ingress.yaml

27 lines
717 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minikube-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
# - host: kube.slc.ar
- http:
paths:
- path: /()(.*)
pathType: ImplementationSpecific
backend:
service:
name: client
port:
number: 8080
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: api
port:
number: 5000