feat: integration event configs
This commit is contained in:
parent
eb6612a7ea
commit
8b79642f48
21
README.md
21
README.md
@ -41,7 +41,25 @@ kubectl --kubeconfig=/etc/rancher/k3s/k3s-test.yaml -n test \
|
|||||||
--dry-run=client -o yaml | kubectl apply -f -
|
--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
|
```bash
|
||||||
kubectl -n prod create secret generic consul-acl \
|
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)
|
# test(内网 NodePort consul-ci;安全组仅 runner→13:30850)
|
||||||
export KUBECONFIG=/etc/rancher/k3s/k3s-test.yaml NAMESPACE=test
|
export KUBECONFIG=/etc/rancher/k3s/k3s-test.yaml NAMESPACE=test
|
||||||
export CONSUL_HTTP_ADDR=http://172.16.16.13:30850
|
export CONSUL_HTTP_ADDR=http://172.16.16.13:30850
|
||||||
|
# 本机不在 VPC:http://119.91.43.60:30850(须安全组放行办公网→30850)
|
||||||
./scripts/sync-to-consul.sh
|
./scripts/sync-to-consul.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -73,5 +73,13 @@
|
|||||||
"SignUrls": true,
|
"SignUrls": true,
|
||||||
"DurationSecond": 600
|
"DurationSecond": 600
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"IntegrationEventLog": {
|
||||||
|
"OutboxPublisher": {
|
||||||
|
"StartupDelay": "00:00:05",
|
||||||
|
"ScanInterval": "00:00:10",
|
||||||
|
"BatchSize": 100,
|
||||||
|
"MaxDegreeOfParallelism": 8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user