mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
102 lines
2.4 KiB
YAML
102 lines
2.4 KiB
YAML
{{- define "datasource.mysql" -}}
|
|
{{- if .Values.mysql.enabled }}
|
|
{{- printf "%s-mysql" (include "didi-km.fullname" .) -}}
|
|
{{- else -}}
|
|
{{- printf "%s" .Values.externalDatabase.host -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "didi-km.fullname" . }}-configs
|
|
labels:
|
|
{{- include "didi-km.labels" . | nindent 4 }}
|
|
data:
|
|
application.yml: |
|
|
server:
|
|
port: 8080
|
|
tomcat:
|
|
accept-count: 1000
|
|
max-connections: 10000
|
|
max-threads: 800
|
|
min-spare-threads: 100
|
|
|
|
spring:
|
|
application:
|
|
name: kafkamanager
|
|
datasource:
|
|
kafka-manager:
|
|
jdbc-url: jdbc:mysql://{{ include "datasource.mysql" . }}:3306/{{ .Values.mysql.auth.database }}?characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
|
|
username: {{ .Values.mysql.auth.username }}
|
|
password: {{ .Values.mysql.auth.password }}
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
main:
|
|
allow-bean-definition-overriding: true
|
|
|
|
profiles:
|
|
active: dev
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 100MB
|
|
max-request-size: 100MB
|
|
|
|
logging:
|
|
config: classpath:logback-spring.xml
|
|
|
|
custom:
|
|
idc: cn
|
|
jmx:
|
|
max-conn: 20
|
|
store-metrics-task:
|
|
community:
|
|
broker-metrics-enabled: true
|
|
topic-metrics-enabled: true
|
|
didi:
|
|
app-topic-metrics-enabled: false
|
|
topic-request-time-metrics-enabled: false
|
|
topic-throttled-metrics-enabled: false
|
|
save-days: 7
|
|
|
|
# 任务相关的开关
|
|
task:
|
|
op:
|
|
sync-topic-enabled: false # 未落盘的Topic定期同步到DB中
|
|
|
|
account:
|
|
# ldap settings
|
|
ldap:
|
|
enabled: false
|
|
authUserRegistration: false
|
|
|
|
kcm:
|
|
enabled: false
|
|
storage:
|
|
base-url: http://127.0.0.1
|
|
n9e:
|
|
base-url: http://127.0.0.1:8004
|
|
user-token: 12345678
|
|
timeout: 300
|
|
account: root
|
|
script-file: kcm_script.sh
|
|
|
|
monitor:
|
|
enabled: false
|
|
n9e:
|
|
nid: 2
|
|
user-token: 1234567890
|
|
mon:
|
|
base-url: http://127.0.0.1:8032
|
|
sink:
|
|
base-url: http://127.0.0.1:8006
|
|
rdb:
|
|
base-url: http://127.0.0.1:80
|
|
|
|
notify:
|
|
kafka:
|
|
cluster-id: 95
|
|
topic-name: didi-kafka-notify
|
|
order:
|
|
detail-url: http://127.0.0.1
|
|
|