Closed kyleCheng56 closed 9 months ago
apiVersion: v1 kind: ConfigMap metadata: name: shenyu-cm namespace: shenyu data: shenyu-admin-application.yml: | server: port: 9095 address: 0.0.0.0 spring: profiles: active: mysql thymeleaf: cache: true encoding: utf-8 enabled: true prefix: classpath:/static/ suffix: .html mvc: pathmatch: matching-strategy: ant_path_matcher mybatis: config-location: classpath:/mybatis/mybatis-config.xml mapper-locations: classpath:/mappers/*.xml shenyu: register: registerType: http #http #zookeeper #etcd #nacos #consul serverLists: #localhost:2181 #http://localhost:2379 #localhost:8848 props: sessionTimeout: 5000 connectionTimeout: 2000 checked: true zombieCheckTimes: 5 scheduledTime: 10 nacosNameSpace: ShenyuRegisterCenter sync: websocket: enabled: true messageMaxSize: 10240 allowOrigins: ws://192.168.1.252:9095;ws://192.168.1.252:9195;ws://192.168.2.110:9195; ldap: enabled: false url: ldap://xxxx:xxx bind-dn: cn=xxx,dc=xxx,dc=xxx password: xxxx base-dn: ou=xxx,dc=xxx,dc=xxx object-class: person login-field: cn jwt: expired-seconds: 86400000 shiro: white-list:
webServerFactoryEnabled: true
selectCount: 1
workerCount: 4
accessLog: false
serverSocketChannel:
soRcvBuf: 87380
soBackLog: 128
soReuseAddr: false
connectTimeoutMillis: 10000
writeBufferHighWaterMark: 65536
writeBufferLowWaterMark: 32768
writeSpinCount: 16
autoRead: false
allocType: "pooled"
messageSizeEstimator: 8
singleEventExecutorPerGroup: true
socketChannel:
soKeepAlive: false
soReuseAddr: false
soLinger: -1
tcpNoDelay: true
soRcvBuf: 87380
soSndBuf: 16384
ipTos: 0
allowHalfClosure: false
connectTimeoutMillis: 10000
writeBufferHighWaterMark: 65536
writeBufferLowWaterMark: 32768
writeSpinCount: 16
autoRead: false
allocType: "pooled"
messageSizeEstimator: 8
singleEventExecutorPerGroup: true
instance: enabled: false registerType: zookeeper #etcd #consul serverLists: localhost:2181 #http://localhost:2379 #localhost:8848 props: cross: enabled: true allowedHeaders: allowedMethods: "" allowedAnyOrigin: true # the same of Access-Control-Allow-Origin: "" allowedExpose: "" maxAge: "18000" allowCredentials: true switchConfig: local: true file: enabled: true maxSize : 10 sync: websocket: urls: ws://192.168.1.252:9095/websocket allowOrigin: ws://192.168.1.252:9195 exclude: enabled: false paths:
Is there an existing issue for this?
Current Behavior
Use Kubernetes to deploy the Shenyu gateway, enable metrics, and connect Prometheus to collect Shenyu metric data, including basic metrics and traffic limiting metrics.
Expected Behavior
No response
Steps To Reproduce
Use HUAWEI CLOUD CCE v1.27 container engine (k8s) to deploy the shenyu gateway using shenyu-ns.yaml and shenyu-bootstrap.yaml.
Environment
Debug logs
No response
Anything else?
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-11-19 09:43:05 [main] ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter -
APPLICATION FAILED TO START
Description:
Failed to bind properties under 'shenyu.metrics.port' to java.lang.Integer:
Action:
Update your application's configuration