本文提供腾讯云智能体开发平台(Tencent Cloud Agent Development Platform)在腾讯云容器服务(Tencent Kubernetes Engine,TKE)中的标准部署配置文件示例,您可根据实际业务需求修改参数进行部署。示例文件如下:
注意:
示例中的 host、port、apikey 等参数仅用作展示,需要替换成您自己的再进行部署。
# 腾讯云智能体开发平台云部署配置示例# global 下的配置会自动传递给所有子 Chart# ============================# 全局配置 (自动传递给子 Chart)# ============================global:# 集群类型:包含 [minimal]、[standard] 和 [recommended] 三个配置段clusterSize: minimal# CLB 域名(必填)https://console.cloud.tencent.com/clb/instanceclb: "xx.adp-private.com"# CLB ID(必填)clbId: lb-751o89m3# 协议: http 或 https (必填)scheme: http# RSA 密钥配置(必填)用于前后端加解密登录密码# 生成方法:# 1. 生成私钥: openssl genrsa -out private.pem 2048# 2. 生成公钥: openssl rsa -in private.pem -pubout -out public.pem# 3. Base64编码: cat private.pem | base64 -w 0 > privateKey.txt# cat public.pem | base64 -w 0 > publicKey.txtrsa:privateKey: "<YOUR_RSA_PRIVATE_KEY_BASE64>"publicKey: "<YOUR_RSA_PUBLIC_KEY_BASE64>"# ============================# 模型服务配置 (modelServices)# ============================# 支持以下模型服务类型:# - adp: 腾讯云知识引擎 https://console.cloud.tencent.com/lkeap# - hunyuan: 腾讯混元大模型 https://console.cloud.tencent.com/hunyuan/startmodelServices:# 腾讯云知识引擎 ADP(必填)adp:apiKey: "<YOUR_ADP_API_KEY>"# 腾讯混元大模型(必填)hunyuan:apiKey: "<YOUR_HUNYUAN_API_KEY>"# ============================# 基础组件配置 (components)# ============================# vendor: 云厂商标识 (tencent/aws/alibaba/azure/gcp/huawei/self)# providerType: 具体产品类型,结合 vendor 唯一标识组件实现components:# 数据库配置 (必填) https://cloud.tencent.com/product/tdsqldb:vendor: tencentproviderType: tdsql # tencent: tdsql/cynosdb | aws: aurora/rds | alibaba: polardb | self: mysql/mariadbhost: "192.168.0.1"port: 3306user: "<YOUR_DB_USER>"password: "<YOUR_DB_PASSWORD>"# Redis 缓存配置 (必填) https://cloud.tencent.com/product/crsredis:vendor: tencentproviderType: crs # tencent: crs | aws: elasticache | alibaba: kvstore | self: rediscluster: masterhosts:- 192.168.0.1port: 6379password: "<YOUR_REDIS_PASSWORD>"# Elasticsearch 配置 (必填) https://cloud.tencent.com/product/eses:vendor: tencentproviderType: es # tencent: es | aws: opensearch | alibaba: elasticsearch | self: elasticsearchhosts:- 192.168.0.1port: 9200user: elasticpassword: "<YOUR_ES_PASSWORD>"# 对象存储配置 (必填) https://cloud.tencent.com/product/coss3:vendor: tencentproviderType: cos # tencent: cos | aws: s3 | alibaba: oss | azure: blob | gcp: gcs | self: minio# COS 专用配置 (providerType=cos 时生效)cos:secretId: "<YOUR_COS_SECRET_ID>"secretKey: "<YOUR_COS_SECRET_KEY>"appId: "<YOUR_COS_APP_ID>"bucket: "<YOUR_COS_BUCKET>"region: "<YOUR_COS_REGION>"domain: myqcloud.comsubPath: "public"expireTime: 3600scredentialTime: 3600s# 消息队列CKafka版 https://console.cloud.tencent.com/ckafka/instancekafka:vendor: tencentproviderType: kafkahosts:- 192.168.0.1port: 9092# 向量数据库配置 (必填,数组格式支持多实例) https://cloud.tencent.com/product/vdbvdb:- vendor: tencentproviderType: vdb # tencent: vdb | self: milvusaddr: http://192.168.0.1account: rootapiKey: "<YOUR_VDB_API_KEY>"# ============================# 可观测性配置 (observability)# ============================observability:# CLS 日志收集配置 (可选) https://console.cloud.tencent.com/cls/topiccls:enabled: truelogsetId: "<YOUR_CLS_LOGSET_ID>"topicId: "<YOUR_CLS_TOPIC_ID>"# Prometheus 监控配置 (可选) https://console.cloud.tencent.com/tke2/prometheus2prometheus:enabled: true# APM 链路追踪配置 (可选) https://console.cloud.tencent.com/monitor/apm/system/listapm:vendor: tencentproviderType: tps # tencent: tps | aws: xray | self: jaegerotlp: "pl.ap-beijing.apm.tencentcs.com:4319"registry: ""attributes:token: "<YOUR_APM_TOKEN>"# ============================# 内容安全配置 (content-security)# ===========================contentSecurity:# 类型: sdk(必填)type: sdk# 是否禁用内容检查(可选,填写 true 或 false)disableContentCheck: false# 审核开关(可选,填写 true 或 false)auditSwitch: true# 是否禁用图片检查(可选,填写 true 或 false)disableImageCheck: false# `bizType` (启用审核时 必选)bizType: "<YOUR_BIZ_TYPE>"# 文本内容安全配置 (可选) https://cloud.tencent.com/document/product/1124/51860region: ap-beijingappId: "<YOUR_APP_ID>"uin: "<YOUR_UIN>"subUin: "<YOUR_SUB_UIN>"secretId: "<YOUR_SECRET_ID>"secretKey: "<YOUR_SECRET_KEY>"callbackUrl: "<YOUR_CALLBACK_URL>"