Skip to content

マニフェストリファレンス

このページは .takos/app.yml の current surface を要約します。.takos/app.yml は group desired state を author する主要 source で、resource と binding は Cloudflare-native の syntax が正本です。Takos runtime はこの spec を Cloudflare backend と互換 backend の両方で実現します。

トップレベル

fieldrequiredtype説明
apiVersionyesstringtakos.dev/v1alpha1
kindyesstringApp
metadata.nameyesstringアプリ名
spec.versionyesstringデプロイ表示用バージョン

spec

fieldrequired説明
workersnoWorkers runtime workload
servicesno常設コンテナ workload
containersnoWorker に紐づく CF Containers
resourcesnoCloudflare-native resource 定義
routesnoworkload 公開ルート
envno環境変数と注入
oauthnoOAuth client 設定
mcpServersnoMCP 公開設定
fileHandlersnoファイルハンドラー
overridesno環境別 override

workers.<name>

fieldrequired説明
buildyes現在は fromWorkflow のみ
containersnospec.containers の名前
bindingsnoCloudflare-native bindings
triggersnoschedules, queues
envnoWorker 固有 env
healthChecknoヘルスチェック
scalingnoスケーリング設定
dependsOnno他 workload への依存

services.<name>

fieldrequired説明
dockerfilenolocal/offline build 用 Dockerfile path
imageRefnoonline takos apply / takos deploy が使う digest-pinned image ref
artifactnokind: image の direct image artifact
providernooci, ecs, cloud-run, k8s
portyeslisten port
bindingsnoworkers と同じ binding syntax
triggersno現在は schedules のみ
envnoservice env
healthChecknoヘルスチェック
volumesnovolume mount
dependsOnno他 workload への依存

workers.<name>.bindings / services.<name>.bindings

keyresource type
d1d1
r2r2
kvkv
queuesqueue
vectorizevectorize
analyticsEngineanalyticsEngine
workflowworkflow
durableObjectsdurableObject
services他 workload

resources.<name>

共通フィールド:

fieldrequired説明
typeyesCloudflare-native resource kind
bindingnoruntime binding 名
generatenosecret 用自動生成
migrationsnod1 用 migration path
limitsno論理制限

type に使える値:

type追加フィールド
d1migrations
r2-
kv-
queuequeue.maxRetries, queue.deadLetterQueue, queue.deliveryDelaySeconds
vectorizevectorize.dimensions, vectorize.metric
analyticsEngineanalyticsEngine.dataset
secretRefgenerate
workflowworkflow.service, workflow.export, workflow.timeoutMs, workflow.maxRetries
durableObjectdurableObject.className, durableObject.scriptName

classbacking はサポートしません。

workflow は manifest でも service settings API / tool でも設定できます。dynamic binding でも workflow.serviceworkflow.export の metadata が必要です。workflow.service は worker 名または service 名を参照します。

services.<name>dockerfile / imageRef / artifact.kind=image のいずれかが必要です。takos apply / takos deploy は full deployment pipeline を通るため、workersbuild.fromWorkflow.artifactPath から bundle を解決し、services / containersimageRefartifact.kind=image を使います。imageRef は digest pin (@sha256:...) 必須です。dockerfile だけでは online apply / deploy の deploy source としては不十分です。

routes[]

fieldrequired説明
nameyesroute 名
targetyesworker / service / container 名
pathno公開 path
ingressnoingress workload
timeoutMsnoroute timeout
methodsno許可 HTTP method

custom domain / hostname routing はこの manifest の canonical desired state には含めません。これらは routing / observed surface として別 API で扱います。

mcpServers[]

fieldrequired説明
nameyesMCP 名
routeyes*routes[].name を参照
endpointyes*外部 URL
transportyesstreamable-http
authSecretRefnotype: secret resource 名

routeendpoint は排他です。