Skip to content

kelpie.yaml

A kelpie.yaml in a stack folder holds settings for that stack. Since it is in git, a change to it is reviewed like any other change. All keys are optional:

stacks/app/kelpie.yaml
type: swarm # swarm or compose
endpoint: edge-01
deploy: approve # auto, approve, or manual
edits: pr # commit or pr
Key Values Default Meaning
type swarm, compose swarm on a Swarm manager, compose elsewhere Deploy with docker stack deploy or docker compose up.
endpoint an endpoint name local Where to deploy. See Endpoints.
deploy auto, approve, manual the repository’s default What happens when a new revision arrives: deploy it, wait for approval, or nothing.
edits commit, pr the repository’s default How edits made in Kelpie reach git: straight to the branch, or as a pull request.

Unknown keys and invalid values are refused. The stack page shows the error, and until the file is fixed the stack keeps its last valid settings and gets no new revisions.

Without type, a stack is a Swarm stack when its endpoint is a Swarm manager and a Compose project when it isn’t. Once deployed, it keeps that type even if the host joins or leaves a Swarm; set type to change it.

Moving a stack to another endpoint doesn’t remove it from the old one.

Whether authors may approve their own changes is a server setting (KELPIE_SEPARATE_APPROVER), not a kelpie.yaml key, so a change can’t switch it off for itself. See Deploys.