Commit a36ffb02 by 蒋勇

d

parent adc4bc07
...@@ -8,7 +8,6 @@ route: ...@@ -8,7 +8,6 @@ route:
strip_path: false strip_path: false
--- ---
#创建自定义插件 #创建自定义插件
apiVersion: configuration.konghq.com/v1 apiVersion: configuration.konghq.com/v1
kind: KongPlugin kind: KongPlugin
......
# 创建自定义的kongingress,去动态修改kong的配置
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: kongingress-strip-path
namespace: newtime
route:
strip_path: false
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: paas-ingress
namespace: newtime
annotations:
configuration.konghq.com: kongingress-strip-path
spec:
rules:
- host: channelquery.gongsibao.com
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web/auth/userCtl/pmgetUserByCode
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web/auth/userCtl/pmlogin
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web/auth/userCtl/pmregister
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web/auth/userCtl/pmSendVCode
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web/auth/userCtl/pmloginByVCode
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /api
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
- path: /web
pathType: Prefix
backend:
serviceName: paas-service
servicePort: 80
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment