You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/deploy_k8s/ingress.yaml

119 lines
3.7 KiB

3 years ago
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
3 years ago
kubernetes.io/ingress.class: "nginx"
3 years ago
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
3 years ago
name: sdk-server-ingress
3 years ago
spec:
rules:
3 years ago
- host: sdk-server.openim.xxx.com
3 years ago
http:
paths:
- backend:
service:
name: sdk-server
port:
3 years ago
number: 10003
3 years ago
path: /
3 years ago
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
3 years ago
kubernetes.io/ingress.class: "nginx"
3 years ago
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
3 years ago
name: msg-gateway-ingress
3 years ago
spec:
rules:
3 years ago
- host: msg-gateway.openim.xxx.com
3 years ago
http:
paths:
- backend:
service:
3 years ago
name: msg-gateway
3 years ago
port:
number: 10001
3 years ago
path: /
3 years ago
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
3 years ago
annotations:
kubernetes.io/ingress.class: "nginx"
2 years ago
nginx.ingress.kubernetes.io/Access-Control-Allow-Origin: '*'
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,x-auth-token,Pagination
nginx.ingress.kubernetes.io/cors-allow-methods: 'PUT, GET, POST, OPTIONS'
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/service-weight: ''
3 years ago
name: api-ingress
3 years ago
spec:
rules:
3 years ago
- host: api.openim.xxx.com
3 years ago
http:
paths:
- backend:
service:
name: api
port:
3 years ago
number: 10002
3 years ago
path: /
3 years ago
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
3 years ago
annotations:
kubernetes.io/ingress.class: "nginx"
2 years ago
nginx.ingress.kubernetes.io/Access-Control-Allow-Origin: '*'
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,x-auth-token,Pagination
nginx.ingress.kubernetes.io/cors-allow-methods: 'PUT, GET, POST, OPTIONS'
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/service-weight: ''
3 years ago
name: demo-ingress
3 years ago
spec:
rules:
3 years ago
- host: demo.openim.xxx.com
3 years ago
http:
paths:
- backend:
service:
name: demo
port:
2 years ago
number: 10004
3 years ago
path: /
3 years ago
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
3 years ago
annotations:
kubernetes.io/ingress.class: "nginx"
2 years ago
nginx.ingress.kubernetes.io/Access-Control-Allow-Origin: '*'
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,x-auth-token,Pagination
nginx.ingress.kubernetes.io/cors-allow-methods: 'PUT, GET, POST, OPTIONS'
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/service-weight: ''
3 years ago
name: cms-api-ingress
3 years ago
spec:
rules:
3 years ago
- host: cms-api.openim.xxx.com
3 years ago
http:
paths:
- backend:
service:
name: cms-api
port:
number: 10006
3 years ago
path: /
3 years ago
pathType: Prefix