Kubernetes
The Platform installs on a Kubernetes cluster with its Helm chart, published to the registry beside the images, one version per build: one Deployment and one Service per service, the same images the Compose files run, PostgreSQL and NATS bundled for an evaluation or brought by address for production, and several simulator instances behind a balancer when asked. This page is the Kubernetes form of Install and configure; the settings are the same, under the service they belong to in the chart’s values.
Before you start
Section titled “Before you start”- Kubernetes 1.27 or later and Helm 3. A StorageClass for the volumes (PostgreSQL and NATS when bundled, the reference switch’s advices, the backups), and an Ingress controller if people reach the console through one.
- Access to the images at
ghcr.io/iso8583sim, or your own registry with the images copied there: setimage.registryandimage.pullSecrets. - The chart:
oci://ghcr.io/iso8583sim/charts/iso8583sim-platform, from the same registry with the same access. Each version is one build of the Platform, its defaultimage.tagthat build’s, so a chart version and its images always go together;helm show chartprints the Platform version asappVersion.
1. The required values
Section titled “1. The required values”platform: url: https://payments-test.example.com # the address people use; sign-in links point heresecrets: postgresPassword: ... # openssl rand -hex 16 hsmMasterKey: ... # openssl rand -hex 32 vaultMasterKey: ... # openssl rand -hex 32, a different oneThe two master keys seal the HSM simulator’s LMK and the vault’s keys. Keep a copy of each away from the cluster and away from the backups: without them those can’t be opened. The chart puts the three in one Secret; to make that Secret yourself (from your secrets manager, say), create it with the keys postgres-password, hsm-master-key and vault-master-key and name it in secrets.existingSecret. The keys reach the HSM simulator and the vault as files mounted from the Secret, never as environment variables; the database password reaches each service on its own, and the service fills it into its connection string, so no manifest holds a URL with the password in it.
Email for sign-in links goes under mail (mailer, from, smtp, with the password in secrets.smtpPassword); who can sign up and single sign-on under identity, as on the install page.
2. Install
Section titled “2. Install”helm registry login ghcr.iohelm install platform oci://ghcr.io/iso8583sim/charts/iso8583sim-platform --version <version> -f values.yaml -n payments-test --create-namespacekubectl -n payments-test get pods -wUpgrading is helm upgrade with the next version, your values file unchanged. The chart also comes as a file, iso8583sim-platform-<version>.tgz with a .sha256 beside it, for a cluster that can’t reach the registry: helm install platform iso8583sim-platform-<version>.tgz ... installs it the same way, with image.registry pointing at where you copied the images.
Every service brings its database up to date as it starts; the pods are ready within a minute or two. helm test platform checks the entry point answers and the api behind it is on the bus.
3. Reach it, and make the first admin
Section titled “3. Reach it, and make the first admin”Without an Ingress, from your machine:
kubectl -n payments-test port-forward svc/platform-web 8080:80With one, set web.ingress.enabled, web.ingress.host and its TLS, and point platform.url at it; the Ingress controller terminates TLS, and the entry point takes the visitor’s address from its header.
kubectl -n payments-test exec deploy/platform-identity -- iso8583sim-identity create-admin --email [email protected]prints a one-time sign-in link for the first admin.
Your own PostgreSQL and NATS
Section titled “Your own PostgreSQL and NATS”For production, bring a PostgreSQL server (a managed one) and, if you run one, a NATS server with JetStream:
postgresql: bundled: false host: db.internal.example.com user: platform # its password is secrets.postgresPasswordnats: bundled: false url: nats://nats.internal.example.com:4222The services need six databases: platform, identity, logs, hsm, vault and captures. A Job makes the ones missing before the services start when the user may create databases; otherwise make them yourself and set postgresql.createDatabases to false. Bundled, each runs as one pod with a volume, enough for an evaluation or a small team; the operate pages on backups and scaling hold either way.
Several simulator instances
Section titled “Several simulator instances”simulator: replicas: 3puts the instances behind the balancer the Compose HA mode uses: hosts with rules run on every instance, a stateful issuer on one at a time, moving to another within a second when its instance stops and within five seconds when it dies; a connection an instance refuses is tried on the next. The balancer runs as two pods, and a PodDisruptionBudget keeps one instance and one balancer through a node drain. simulator.leaseRenew and simulator.leaseExpiry are the lease times the scaling page describes.
Runners, load generators, the workbench, the assistant and the MCP server scale with their replicas. The services that own a database and serve from it alone run as one pod each and restart one at a time on an upgrade, since each brings its schema up to date as it starts; the assistant’s replicas share its database, with the first to start migrating it.
Ports and Services
Section titled “Ports and Services”| Service | Ports | What |
|---|---|---|
platform-web |
80 | The console and the API: put your Ingress in front of it |
platform-hosts |
8583 to 8599 | The simulated hosts, for your systems to connect to |
platform-hsm |
1500 | The HSM simulator’s host commands (platform-hsm-commands when hsm.service.type isn’t ClusterIP) |
platform-captures |
8700 to 8719 | Capture points |
Every Service is ClusterIP unless its service.type says LoadBalancer or NodePort, so nothing faces outside the cluster until you ask; systems inside the cluster reach the hosts at platform-hosts:8583 and so on. The reference gateway and switch run on every install for Try it end to end (reference.enabled false leaves them out) and are never exposed.
Backups
Section titled “Backups”backup: enabled: true ageRecipient: age1... # the public key; the private key stays with you r2: {endpoint: https://....r2.cloudflarestorage.com, bucket: platform-backups}with secrets.r2AccessKeyId and secrets.r2SecretAccessKey runs the backup every night at backup.schedule as a CronJob, keeping the last backup.keepLocal on a volume and a copy in the bucket. What a backup holds and how to restore one is on the backups page; a restore runs the same script against the bundled PostgreSQL from a pod, or against your own server from anywhere that reaches it.
Upgrading
Section titled “Upgrading”helm upgrade platform deploy/helm/iso8583sim-platform -f values.yaml --set image.tag=<version>Take a backup first. The services that own a database restart one at a time; the rest roll.
What the chart doesn’t do
Section titled “What the chart doesn’t do”- It ships no NetworkPolicy: the services talk to each other over NATS and HTTP inside the namespace, and the cluster’s own policies decide what else may reach them.
- Tracing and the assistant’s model are set as on the install page, under
tracingandassistant; the demo’s traffic service stays off (traffic.enabled). - The entry point’s pod runs as the image’s own user with the one capability that binds port 80; every other pod runs as an unprivileged user with no capabilities.