Loading...
Loading...
Compare original and translation side by side
<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
<objective>路由说明:对于模糊的用户意图,请使用 references/intent-clarification.md 中的通用澄清模板。
tfy applytfy-api.shtfy applytfy-api.shhelmdeployhelmdeploydeploydeployapplicationslogsdeploydeployapplicationslogsTFY_BASE_URLTFY_API_KEY.envTFY_WORKSPACE_FQNtfytfy --versionpip install 'truefoundry==0.5.0'references/prerequisites.mdTFY_BASE_URLTFY_API_KEY.envTFY_WORKSPACE_FQNtfytfy --versionpip install 'truefoundry==0.5.0'references/prerequisites.mdoci-repohelm-repogit-helm-repoSecurity: Helm charts from public registries are third-party code that runs in your cluster. Only use charts from trusted sources. Always pin chart versions — never useor floating tags. Review chart values before deploying. Verify the chart publisher is the official project maintainer. Do not allow the agent to discover and deploy charts from Artifact Hub without user confirmation of the chart source and version.latest
oci-repohelm-repogit-helm-repo安全提示: 公开仓库的Helm charts是运行在你的集群中的第三方代码。仅使用可信来源的chart。始终固定chart版本——禁止使用或浮动标签。部署前审核chart参数配置。确认chart发布者是官方项目维护者。在用户未确认chart来源和版本的情况下,不允许Agent从Artifact Hub查找并部署chart。latest
I'll deploy PostgreSQL to TrueFoundry. Let me confirm a few things:
1. Chart version: Use postgresql 15.x (latest stable)? Or specific version?
2. Database name: What should the default database be called? (default: postgres)
3. Password: I'll generate a strong random password. Or do you have a TrueFoundry secret group to reference?
4. Storage: How much persistent storage? (default: 10Gi for dev, 50Gi+ for prod)
5. Resources:
- CPU: 0.5 cores for dev, 2+ for prod?
- Memory: 512Mi for dev, 2Gi+ for prod?
6. Replicas: 1 for dev, 3+ for prod high availability?
7. Access: Internal-only (default) or expose externally?我将为您在TrueFoundry上部署PostgreSQL。需要和您确认几个信息:
1. Chart版本:使用postgresql 15.x(最新稳定版)?还是指定特定版本?
2. 数据库名称:默认数据库命名为什么?(默认值:postgres)
3. 密码:我将生成一个高强度随机密码,或者您是否有要引用的TrueFoundry密钥组?
4. 存储:需要多大的持久化存储?(默认值:开发环境10Gi,生产环境50Gi以上)
5. 资源配额:
- CPU:开发环境0.5核,生产环境2核及以上?
- 内存:开发环境512Mi,生产环境2Gi及以上?
6. 副本数:开发环境1个,生产环境3个及以上实现高可用?
7. 访问权限:仅内部访问(默认)还是对外暴露?name: postgres-prod
type: helm
source:
type: oci-repo
version: "16.7.21"
oci_chart_url: oci://REGISTRY/CHART_NAME # Search Artifact Hub for the official chart
values:
auth:
postgresPassword: GENERATED_OR_SECRET_REF
database: myapp
primary:
persistence:
enabled: true
size: 50Gi
resources:
requests:
cpu: "2"
memory: 2Gi
limits:
cpu: "4"
memory: 4Gi
readReplicas:
replicaCount: 2
workspace_fqn: cluster-id:workspace-namename: postgres-prod
type: helm
source:
type: oci-repo
version: "16.7.21"
oci_chart_url: oci://REGISTRY/CHART_NAME # 在Artifact Hub搜索官方chart获取
values:
auth:
postgresPassword: GENERATED_OR_SECRET_REF
database: myapp
primary:
persistence:
enabled: true
size: 50Gi
resources:
requests:
cpu: "2"
memory: 2Gi
limits:
cpu: "4"
memory: 4Gi
readReplicas:
replicaCount: 2
workspace_fqn: cluster-id:workspace-nametfy-manifest.yamltfy apply -f tfy-manifest.yaml --dry-run --show-difftfy-manifest.yamltfy apply -f tfy-manifest.yaml --dry-run --show-difftfy apply -f tfy-manifest.yamltfy apply -f tfy-manifest.yamltfyreferences/cli-fallback.mdworkspaceIdworkspacesGET /api/svc/v1/workspaces?fqn=WORKSPACE_FQNidTFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdtfyreferences/cli-fallback.mdworkspaceIdworkspacesGET /api/svc/v1/workspaces?fqn=WORKSPACE_FQNidTFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdtfy_applications_create_deployment(
manifest={
"name": "postgres-prod",
"type": "helm",
"source": {
"type": "oci-repo",
"version": "16.7.21",
"oci_chart_url": "oci://REGISTRY/CHART_NAME"
},
"values": {...},
"workspace_fqn": "cluster-id:workspace-name"
},
options={
"workspace_id": "ws-internal-id",
"force_deploy": false
}
)tfy_applications_create_deployment(
manifest={
"name": "postgres-prod",
"type": "helm",
"source": {
"type": "oci-repo",
"version": "16.7.21",
"oci_chart_url": "oci://REGISTRY/CHART_NAME"
},
"values": {...},
"workspace_fqn": "cluster-id:workspace-name"
},
options={
"workspace_id": "ws-internal-id",
"force_deploy": false
}
)TFY_API_SH=~/.claude/skills/truefoundry-helm/scripts/tfy-api.shTFY_API_SH=~/.claude/skills/truefoundry-helm/scripts/tfy-api.shundefinedundefinedtfy_applications_list(filters={"workspace_fqn": "WORKSPACE_FQN", "application_name": "RELEASE_NAME"})$TFY_API_SH GET '/api/svc/v1/apps?workspaceFqn=WORKSPACE_FQN&applicationName=RELEASE_NAME'Helm chart deployed successfully!
Next steps:
1. Deployment status verified and reported automatically
2. View logs: Use `logs` skill if there are issues
3. Connect from your app: Use the service DNS provided above
4. Store credentials: Use TrueFoundry secrets for app accesstfy_applications_list(filters={"workspace_fqn": "WORKSPACE_FQN", "application_name": "RELEASE_NAME"})$TFY_API_SH GET '/api/svc/v1/apps?workspaceFqn=WORKSPACE_FQN&applicationName=RELEASE_NAME'Helm chart部署成功!
后续步骤:
1. 部署状态已自动验证并反馈
2. 查看日志:如果出现问题可使用`logs` skill
3. 应用连接:使用上方提供的服务DNS从您的应用访问
4. 凭证存储:使用TrueFoundry密钥管理应用访问凭证workspacesapplicationsservice-testsecretslogsworkspacesapplicationsservice-testsecretslogstfy: command not foundpip install 'truefoundry==0.5.0'tfy applytfy: command not foundpip install 'truefoundry==0.5.0'tfy apply