Software on a Provided Cluster

Guide for running Polycrate-packaged applications on a customer-provided Kubernetes cluster (BYOC): cluster contract checklist, overlays, and rollout steps.

Software on a Provided Cluster

This guide is aimed at teams and software vendors deploying a Polycrate-packaged application onto a third-party-managed Kubernetes cluster (Bring Your Own Cluster / BYOC). The cluster operator provides the Kubernetes API; you deliver the versioned workspace, container images, and operational actions.

The examples use the fictional organization acme and registry.acme.corp.

1. Target Cluster Prerequisites (Cluster Contract)

Review these requirements together with the cluster operator before the first polycrate run. If any component is missing, agree explicitly on whether the cluster operator will provide it or whether you are permitted to install the corresponding platform block.

Area Target State If Missing
Kubernetes API Reachable from the jump host, tested Kubernetes version Deployment impossible
RBAC / Permissions Defined permissions for namespaces, workloads, and required CRDs (no blanket cluster-admin) Installation fails
CNI & Network Policies Functional pod network with enforceable NetworkPolicies Install a CNI (e.g., Cilium) only with explicit approval
Storage (CSI) StorageClass for ReadWriteOnce (and ReadWriteMany if required) with a documented name Stateful workloads fail to start
Ingress / Gateway API NGINX Ingress Controller or Envoy Gateway (Gateway API) for HTTP(S) routing, or approval to install No external access — see Ingress & Edge
TLS Certificates cert-manager with ClusterIssuer or agreed certificate provisioning Align on TLS setup
DNS & NTP Reliable name resolution and time synchronization across all nodes Certificates, tokens, and logs fail
Object Storage (S3) S3-compatible storage outside the cluster node disks for database and Velero backups No true recoverability — see Private Object Storage
Container Registry Pull access to the agreed registry or an internal mirror Registry Proxying / Air-Gap
Jump Host Linux/macOS with Docker, Polycrate CLI, and artifacts/secrets/kubeconfig.yml Cannot execute actions

2. Separate Core Package and Site-Specific Configuration

Keep your block selection and versions consistent, and cleanly separate site-specific parameters into each site workspace (along with encrypted secrets.poly.age and artifacts/secrets/kubeconfig.yml). You can check current block versions at any time using polycrate hub list --no-pager or polycrate hub inspect <block>:

# workspace.poly (site workspace for a provided cluster)
name: acme-site-a-1
organization: acme

registry:
  endpoint: registry.acme.corp
  proxy:
    - from: cargo.ayedo.cloud/ayedo
      to: registry.acme.corp/cargo-proxy/ayedo

blocks:
  # Only enable optional infrastructure blocks when agreed with the cluster owner
  - name: ingress
    from: cargo.ayedo.cloud/ayedo/k8s/nginx:<version>
    config:
      enabled: false   # true only if no NGINX/Envoy exists in the target cluster

  - name: cert-manager
    from: cargo.ayedo.cloud/ayedo/k8s/cert-manager:<version>
    config:
      enabled: false

  # Core business application
  - name: app
    from: registry.acme.corp/acme/k8s/plant:1.4.0
    config:
      namespace: acme-plant
      storageClass: standard-rwo
      ingress:
        host: plant.site-a.acme.example

Per site, only the following files and values differ:

  • artifacts/secrets/kubeconfig.yml (encrypted as .age)
  • secrets.poly (database passwords, registry secrets, OIDC credentials)
  • Site parameters in workspace.poly (domain, storageClass, resource sizes, enabled add-ons)

3. Recommended Rollout Sequence

  1. Verify the cluster contract: Walk through and check off every item on the checklist with the cluster operator.
  2. Configure kubeconfig: Place artifacts/secrets/kubeconfig.yml and verify access using kubectl auth can-i and kubectl get storageclass.
  3. Install agreed baseline components: Deploy only the missing and approved cluster components (e.g., Ingress/Envoy, cert-manager, database operator).
  4. Deploy the application: Run polycrate run app install.
  5. Run operational acceptance checks: Create a backup, verify the restore path, and test a targeted rollback to the previous version.

4. Maintenance and Separate Update Cycles

Clearly separate responsibilities between the cluster operator and the application operator:

  • Cluster operator: Operating system, Kubernetes upgrades, CNI, and base storage.
  • Application operator: Application dependencies (database operators, caches) and business application releases in separate maintenance windows.

→ Maintenance and Updates

See Also