diff --git a/README.md b/README.md index f6f950c..e77fb20 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,25 @@ kubectl --kubeconfig=/etc/rancher/k3s/k3s-test.yaml -n test \ --dry-run=client -o yaml | kubectl apply -f - ``` -### 2. (可选)Consul ACL Token +### 2. Consul ACL Token + +**test(推荐一键)**:在测试机或 42(`KUBECONFIG=k3s-test.yaml`)执行: + +```bash +cd /data/k3s-test # 或本仓库同步路径 +./scripts/28-consul-enable-acl.sh +# 写入 ns=test secret/consul-acl: +# CONSUL_MGMT_TOKEN / CONSUL_HTTP_TOKEN(写 KV) / CONSUL_APP_TOKEN(API 读) +``` + +API 已挂 `Consul__Token` ← `CONSUL_APP_TOKEN`。本地: + +```bash +export CONSUL_HTTP_ADDR=http://119.91.43.60:30850 +export CONSUL_HTTP_TOKEN=$(kubectl -n test get secret consul-acl -o jsonpath='{.data.CONSUL_HTTP_TOKEN}' | base64 -d) +``` + +**prod(可选)**: ```bash kubectl -n prod create secret generic consul-acl \ @@ -82,6 +100,7 @@ export KUBECONFIG=/etc/rancher/k3s/k3s.yaml NAMESPACE=prod # test(内网 NodePort consul-ci;安全组仅 runner→13:30850) export KUBECONFIG=/etc/rancher/k3s/k3s-test.yaml NAMESPACE=test export CONSUL_HTTP_ADDR=http://172.16.16.13:30850 +# 本机不在 VPC:http://119.91.43.60:30850(须安全组放行办公网→30850) ./scripts/sync-to-consul.sh ``` diff --git a/idwms/common.json b/idwms/common.json index 061ee5a..68b9b10 100644 --- a/idwms/common.json +++ b/idwms/common.json @@ -73,5 +73,13 @@ "SignUrls": true, "DurationSecond": 600 } + }, + "IntegrationEventLog": { + "OutboxPublisher": { + "StartupDelay": "00:00:05", + "ScanInterval": "00:00:10", + "BatchSize": 100, + "MaxDegreeOfParallelism": 8 + } } }