Test & ship

Environments & deployment

Set up environments or let flunkey detect them in the repository, ship stage by stage, and see what really runs in the cluster.

The flowPersonAgentflunkey
  1. Detect
  2. Set up
  3. Test connection
  4. Staging
  5. Test
  6. Go to production
Agents up to just before production – then you give the go.

Set up an environment

Set up environment opens a wizard with five steps.

  1. TypeDevelopment, test, staging or production. The type proposes name, order and sensible defaults – production for example with approval and deployment by people.
  2. TargetCloud through infrastructure as code or GitOps, Kubernetes direct, own server via SSH, or manual.
  3. AccessOnly the inputs of the chosen target. Secrets carry a lock, are stored encrypted and never shown again.
  4. DeploymentAddress for end-to-end tests, an address per feature, Who deploys? (people, agent, pipeline), approval needed, and what happens afterwards.
  5. CheckThe connection test starts on its own – with the same rights as later deploys – and shows each check with a tick, a warning or an error.
The last step: test the connection.
The last step: test the connection.

Detected in the repository

flunkey reads the repository on every new commit and lists environments it describes that are not set up yet – from GitOps applications, infrastructure folders, overlays, value files per environment, compose files or workflow jobs. Set up opens the wizard prefilled, Set up all creates all of them, Ignore hides a hit.

The project's environments and candidates detected in the repository.
The project's environments and candidates detected in the repository.

Single- or multi-stage

Single-stage (default): a feature in Deploy is shipped to production and recorded. Multi-stage: after the test gate the feature runs through the stages before production, such as staging – deploy, then test each (end-to-end against the stage's address, or an exploratory test record). When a stage passes, the next opens; at the end comes Deploy to production.

Staging passed – production waits for a person to give the go.
Staging passed – production waits for a person to give the go.

Who deploys

MethodHow it runs
People record the deploymentSomeone records each deployment with environment, scope and outcome
The deploy step's agentThe agent gets the cluster access in its container for that run, applies the code, waits for ready workloads, checks the host names and records the deployment
GitOpsflunkey sets the image tag in the config repository – by pull request or direct commit – and follows the sync until healthy
The pipeline's deploy jobA job in .agentic/pipeline.yml with environment:; for production it waits for a project lead's approval
GitOps: flunkey opens a pull request with the new image tag in the config repository.
GitOps: flunkey opens a pull request with the new image tag in the config repository.
The cluster access never appears in instructions, activity, history or the repository. Environments that need approval get the change only afterwards.

What really runs in the cluster

For environments with a connected cluster, flunkey reads every 15 minutes, after every deployment and on demand – read-only, never secrets. The overview shows the running version from the image tags, the health, the URLs and the comparison with the repository. If another version runs than recorded, it says so ("Recorded 0.54.0, running 0.55.0"). When two readings see the same version running steadily, it is taken over as a deployment – rollbacks too.