base.yaml
template/base.yaml 定义 namespace、控制面权限、运行时超时、镜像默认值、挂载文件根目录、数据源模式和导入目录。
启动大禹系统前请检查其中与部署环境相关的值。
下面概述运行时相关字段;镜像坐标以当前检出的 template/base.yaml 为准。
# Base configuration template for dayu system
# Namespace to distinguish different dayu deployments, please modify it when deploying multiple dayu systems in the same kubernetes cluster
namespace: dayu
# levels for container logging in dayu: DEBUG, INFO, WARNING, ERROR
log-level: DEBUG
# specify the downloaded result log file name, if not set, log file name will be generated with timestamps, e.g., RESULT_LOG_DAYU_NAMESPACE_dayu_TIME_2025_11_04_01_46_26.json.gz
log-file-name:
# export/retention controls for result logs and system logs
log-export:
result:
# keep the latest N task results in distributor storage to avoid unbounded growth, 0 means no limit
retention-records: 100000
# prune stale result records every N writes
retention-prune-interval: 10000
# batch size used when generating compressed export files
batch-size: 500
system:
# keep the latest N system snapshots in backend storage, 0 means no limit
retention-records: 100000
# compact the append-only store after it exceeds retention by this many records
compact-interval: 10000
# Backend is the only dayu process allowed to access the Kubernetes API.
backend-rbac:
service-account: dayu-backend
role: dayu-backend-runtime-manager
role-binding: dayu-backend-runtime-manager-binding
cluster-role: dayu-backend-cluster-observer
cluster-role-binding: dayu-backend-cluster-observer-binding
# Bootstrap services are still created through Sedna JMES. Application runtime
# workers are always rendered as sedna.io/v1alpha1 RuntimeService resources.
support-crd-meta:
api-version: sedna.io/v1alpha1
kind: JointMultiEdgeService
# RuntimeService orchestration and bounded revision retirement.
runtime:
# Maximum time for one RuntimeService activation batch to reach both Activated and Ready.
activation-timeout-seconds: 600
# End-to-end budget for one install, recovery, or redeployment transaction.
operation-timeout-seconds: 900
# Total budget for one Scheduler control-plane HTTP call, including retries.
scheduler-request-timeout-seconds: 30
# Maximum immutable grace for tasks still using the previous RuntimeDirectory revision.
retirement-grace-seconds: 180
# TTL for task reservations, leases, join barriers, and runtime idempotency records.
lease-ttl-seconds: 3600
# default image meta information for dayu containers, <registry>/<repository>/<image_name>:<tag>
default-image-meta:
registry: repo:5000
repository: dayuhub
tag: current-tag
# default file mount prefix for dayu containers
default-file-mount-prefix: "/data/dayu-files"
# datasource configuration
datasource:
# true/false, use a simulation datasource container or use a real datasource
use-simulation: true
# specify the edge node to run simulated datasource container, only valid when use-simulation is true
node: edgex1
# default data root path in datasource container, only valid when use-simulation is true
data-root: "/data/datasource/"
# cycle/non-cycle, play mode of the simulation datasource, only valid when use-simulation is true. cycle: loop playing; non-cycle: stop when the data is finished
play-mode: cycle
# import scheduler policy configurations
scheduler-policies:
!include scheduler_policies.yaml
# import service configurations
services:
!include services.yaml
# import result visualization configurations
result-visualizations:
!include result-visualizations.yaml
# import system visualization configurations
system-visualizations:
!include system-visualizations.yaml
current-tag 表示当前检出代码构建的镜像集合。构建镜像和配置 default-image-meta 时应使用同一个值。
最需要按部署调整的是 namespace、default-image-meta、default-file-mount-prefix 与 datasource。
除非同一集群中的另一个大禹系统 namespace 有意使用不同名称,否则请保留默认 RBAC 名称。运行时 worker 不需要 Kubernetes 凭据。
Redis AOF 保存在云端节点的 default-file-mount-prefix/runtime-state/<namespace>/redis 下,应确保该路径可写且持久。
模型与数据源文件见部署挂载文件。