标签:ons 必须 epo iss ber Once pre mes 一个
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: aip-ingress
namespace: default
annotations:
#/tm/api/v1/datas --> /api/v1/datas
nginx.ingress.kubernetes.io/rewrite-target: /
kubernetes.io/ingress.class: "nginx"
spec:
rules:
# 为了避免多个ingress占用同一个host,此项必须配(默认*)
- host: aip.ingress
http:
paths:
- path: /tm
backend:
serviceName: zaip-tenant-manager
servicePort: 7090
- path: /rm
backend:
serviceName: ai-rm-service
servicePort: 8050
资料:
https://kubernetes.github.io/ingress-nginx/
https://kubernetes.io/docs/concepts/services-networking/ingress/
为什么一定需要配host参数?
https://github.com/nginxinc/kubernetes-ingress/issues/209
标签:ons 必须 epo iss ber Once pre mes 一个
原文地址:https://www.cnblogs.com/wenlin-gk/p/9629873.html