Commit a36ffb02 by 蒋勇

d

parent adc4bc07
...@@ -3,16 +3,15 @@ apiVersion: configuration.konghq.com/v1 ...@@ -3,16 +3,15 @@ apiVersion: configuration.konghq.com/v1
kind: KongIngress kind: KongIngress
metadata: metadata:
name: kongingress-strip-path name: kongingress-strip-path
namespace: tencent-qifu namespace: tencent-qifu
route: route:
strip_path: false strip_path: false
--- ---
#创建自定义插件 #创建自定义插件
apiVersion: configuration.konghq.com/v1 apiVersion: configuration.konghq.com/v1
kind: KongPlugin kind: KongPlugin
metadata: metadata:
name: jwt-plugin name: jwt-plugin
namespace: tencent-qifu namespace: tencent-qifu
plugin: jwt plugin: jwt
\ No newline at end of file
# 创建自定义的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