azure app gateway ingress 在一个命名空间中,而目标服务 istio-ingress 在另一个命名空间中,如何设置。
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: server-ingress
namespace: istio-ingress
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/backend-protocol: "http"
appgw.ingress.kubernetes.io/cookie-based-affinity: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- dev1.myproduct.com
secretName: product-cert-secret1
- hosts:
- dev2.myproduct.com
secretName: product-cert-secret2
rules:
- host: dev1.myproduct.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: istio-ingress
port:
number: 80
- host: dev2.myproduct.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: istio-ingress
port:
number: 80