Go workspace (go.work) with 5 microservices + shared library: - gateway (8080), auth-service (8081), purchaser-service (8082) - textile-service (8083), washing-service (8084) - shared: proto definitions, common packages Infrastructure: docker-compose for local dev, K8s manifests for K3s cluster deployment (mysql/redis/etcd + traefik ingress). Frontend (iloom-flatten) added as git submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
84 lines
1.4 KiB
YAML
84 lines
1.4 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: muyu-system-config
|
|
namespace: iloom
|
|
data:
|
|
system.yaml: |
|
|
Name: system.rpc
|
|
ListenOn: 0.0.0.0:9001
|
|
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: system.rpc
|
|
|
|
DataSource: root:muyu2026@tcp(mysql:3306)/muyu_wms?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
|
|
|
|
Cache:
|
|
- Host: redis:6379
|
|
|
|
Log:
|
|
ServiceName: system-rpc
|
|
Mode: console
|
|
Level: info
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: muyu-inventory-config
|
|
namespace: iloom
|
|
data:
|
|
inventory.yaml: |
|
|
Name: inventory.rpc
|
|
ListenOn: 0.0.0.0:9002
|
|
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: inventory.rpc
|
|
|
|
DataSource: root:muyu2026@tcp(mysql:3306)/muyu_wms?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
|
|
|
|
Cache:
|
|
- Host: redis:6379
|
|
|
|
Log:
|
|
ServiceName: inventory-rpc
|
|
Mode: console
|
|
Level: info
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: muyu-gateway-config
|
|
namespace: iloom
|
|
data:
|
|
gateway.yaml: |
|
|
Name: gateway-api
|
|
Host: 0.0.0.0
|
|
Port: 8888
|
|
|
|
Auth:
|
|
AccessSecret: muyu-wms-jwt-secret-key-2026
|
|
AccessExpire: 7200
|
|
|
|
SystemRpc:
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: system.rpc
|
|
NonBlock: true
|
|
|
|
InventoryRpc:
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: inventory.rpc
|
|
NonBlock: true
|
|
|
|
Log:
|
|
ServiceName: gateway-api
|
|
Mode: console
|
|
Level: info
|