05 Deployment Models

Deployment Models

Deployment in Klok should be GitOps-oriented, repeatable, observable, and aligned with tenant and environment boundaries.

How Deployment Works Today

Each tenant has its own deploy manifests repository, <tenant>/environment/<tenant>-deploy-manifests, and an Argo CD application, ipaas-se-<tenant>, that applies the repository's folder <tenant> to the tenant's Kubernetes namespace, with prune and self-heal on. The main pipeline of an integration project builds its image and writes the new image tag into the project's manifest in its tenant's repository; Argo CD then rolls it out. A tenant's pipeline can push only to its own tenant's repository. A tenant's own instance of one of klok's services, klok's image run for the tenant, uses the same paths as klok's own services, the tenant first and then the code project's group and name: its manifest is <tenant>/integration/<service>/<service>-crds.yaml in klok's repository, klok/environment/klok-deploy-manifests, because klok's pipeline writes it, and a second application, ipaas-se-<tenant>-integration, applies the folder <tenant>/integration of that repository; its configuration is secret/<tenant>/integration/<service>/env in Vault. Every pod reads its configuration from Vault when it starts. Each service is deployed once, in production. What a new service needs before its first deployment is in Onboarding A Tenant, section New Integration Project.

Standard Deployment Flow

Environment Promotion

A project may move through dev, test, stage, and prod. Each environment should have clear configuration and access boundaries.

Promotion should not depend on unreviewed local state. The release should be traceable to a Git commit, build artifact, generated docs, context snapshot, and deployment target.

Repository Strategy

Depending on team size and solution shape, a repository can contain one solution with several legs or a broader domain-oriented project. In both cases, route IDs, topics, and context metadata must keep each leg traceable.

Runtime Configuration

Runtime configuration should come from environment-specific configuration, service principals, Keycloak clients, Vault secrets, and Pulsar ACLs. Do not bake environment secrets into project source.

Deployment Readiness

Before deployment, confirm:

  • Build and tests pass.
  • Required data model artifacts are published.
  • Required topics and ACLs exist.
  • Secrets are present in Vault.
  • Service principal is configured.
  • OpenSearch fields and dashboards are ready.
  • DLQ handling is defined.
  • Rollback or replay strategy is documented.