Loading...
Loading...
Deploys infrastructure components via Helm charts on TrueFoundry. Supports any public or private OCI Helm chart including databases (Postgres, MongoDB, Redis), message brokers (Kafka, RabbitMQ), and vector databases (Qdrant, Milvus). Uses YAML manifests with `tfy apply`. Use when installing Helm charts or deploying infrastructure on TrueFoundry.
npx skill4agent add truefoundry/tfy-deploy-skills truefoundry-helm<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
tfy applytfy-api.shhelmdeploydeploydeployapplicationslogsTFY_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
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?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-nametfy-manifest.yamltfy apply -f tfy-manifest.yaml --dry-run --show-difftfy apply -f tfy-manifest.yamltfyreferences/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_API_SH=~/.claude/skills/truefoundry-helm/scripts/tfy-api.sh
# First, get workspace ID from FQN
$TFY_API_SH GET "/api/svc/v1/workspaces?fqn=${TFY_WORKSPACE_FQN}"
# Then deploy (JSON body)
$TFY_API_SH PUT /api/svc/v1/apps '{
"manifest": {
"name": "postgres-prod",
"type": "helm",
"source": {
"type": "oci-repo",
"version": "16.7.21",
"oci_chart_url": "oci://REGISTRY/CHART_NAME"
},
"values": {
"auth": {"postgresPassword": "...", "database": "myapp"},
"primary": {
"persistence": {"enabled": true, "size": "50Gi"},
"resources": {
"requests": {"cpu": "2", "memory": "2Gi"},
"limits": {"cpu": "4", "memory": "4Gi"}
}
}
},
"workspace_fqn": "cluster-id:workspace-name"
},
"workspaceId": "WORKSPACE_ID_HERE"
}'tfy_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 accessworkspacesapplicationsservice-testsecretslogstfy: command not foundpip install 'truefoundry==0.5.0'tfy apply