k3s部署项目

This commit is contained in:
2026-04-16 09:26:00 +08:00
parent ac9ec66890
commit 2d844645a0
10 changed files with 350 additions and 62 deletions

51
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,51 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: report-engine-config
namespace: default
data:
config.yml: |
server:
address : ":3001"
name: "report-engine"
workerId: 1
logPath: "resource/log/server"
logStdout: true
errorStack: true
rate:
limit: 200
burst: 300
database:
default:
- type: "pgsql"
host: "localhost"
port: "5432"
user: "postgres"
pass: "root"
name: "cid"
role: "master"
maxIdle: "5"
maxOpen: "20"
maxLifetime: "60s"
charset: "utf8mb4"
debug: true
dryRun: false
createdAt: "created_at"
updatedAt: "updated_at"
deletedAt: "deleted_at"
timeMaintainDisabled: false
redis:
default:
address: 192.168.3.30:6379
db: 0
idleTimeout: "60s"
maxConnLifetime: "90s"
waitTimeout: "60s"
dialTimeout: "30s"
readTimeout: "30s"
writeTimeout: "30s"
maxActive: 100
consul:
address: ""
jaeger:
addr: ""