open-im-server/deployments/deploy/http-ingress.yml
2025-06-06 15:32:15 +08:00

27 lines
691 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: openim-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
ingressClassName: nginx
rules:
- host: openim-api.localtest.me
http:
paths:
- path: /api/(.*)
pathType: ImplementationSpecific
backend:
service:
name: openim-api-service
port:
number: 10002
- path: /msg_gateway/(.*)
pathType: ImplementationSpecific
backend:
service:
name: messagegateway-rpc-service
port:
number: 10001