platzio
by Platz.io
A Helm chart for Platz.io
About this chart
πΈοΈ Platz.io
Platz is a self-hosted control plane for Helm deployments. It turns your Helm charts into a guided, role-controlled experience β every team gets a typed form, a live status view, and an audit trail, without needing direct kubectl or helm access.
This chart installs Platz into a single Kubernetes namespace. It deploys the API, the web frontend, and the four background workers that make up a Platz installation (k8s-agent, chart-discovery, resource-sync, status-updates).
β‘ TL;DR
helm repo add platzio https://platzio.github.io/helm-charts
helm repo update
kubectl create namespace platzio
kubectl -n platzio create secret generic postgres-creds \
--from-literal=PGHOST=db.example.com \
--from-literal=PGPORT=5432 \
--from-literal=PGUSER=platz \
--from-literal=PGPASSWORD='change-me' \
--from-literal=PGDATABASE=platz
kubectl -n platzio create secret generic oidc-config \
--from-literal=serverUrl=https://auth.example.com/realms/platz \
--from-literal=clientId=platz \
--from-literal=clientSecret='change-me'
helm install platz platzio/platzio -n platzio -f values.yaml
A full walk-through (including ingress, cert-manager, and OIDC setup) lives in the Installing with Helm guide.
π Introduction
Platz is built around a small set of concepts:
| Concept | What it is |
|---|---|
| Env | A logical grouping of clusters and the deployments that run on them. Roles are assigned per env. |
| Cluster | A Kubernetes cluster registered with Platz. Attached to at most one env. |
| Deployment Kind | A category of deployments β usually one per service. |
| Deployment | A single Helm release Platz manages. Lives in its own namespace inside a cluster. |
| Helm Registry | An OCI registry (ECR or generic) that Platz scans for charts. |
| Chart Extension | Optional YAML files that ship inside a Helm chart and give Platz richer inputs, outputs, and forms. |
| Task | A unit of work against a deployment β install, upgrade, action invocation, resource restart. |
The chart deploys the following workloads:
- api β HTTP + WebSocket API consumed by the frontend, bots, and CI.
- frontend β nginx serving the SPA.
- k8s-agent β one StatefulSet per
k8sAgent.instances[]entry. Picks up deployment tasks and runshelm install/helm upgradeinside a target cluster. - chart-discovery β one StatefulSet per
chartDiscovery.instances[]entry. Watches a Helm OCI registry (ECR via SQS, or any generic OCI registry via polling). - resource-sync β reflects Kubernetes resource state of every Platz-managed namespace into the database.
- status-updates β polls deployment status endpoints exposed by charts that opt in to the Status feature.
β Prerequisites
- Kubernetes 1.14+ (the chart emits
networking.k8s.io/v1Ingress resources). - Helm 3.8+ (older versions lack OCI registry support, which Platz relies on for chart discovery).
- PostgreSQL 15+ reachable from the cluster β RDS, Aurora, Cloud SQL, or self-managed. Platz is built and tested against PostgreSQL 17.
- An OIDC provider for user authentication (Auth0, Keycloak, Dex, Google, Okta, GitHub via an OIDC bridge β anything that speaks OpenID Connect).
- At least one Helm OCI registry that Platz can scan for charts. Amazon ECR and any registry that implements the OCI Distribution Spec are both supported.
- An ingress controller (
ingress-nginx, AWS Load Balancer Controller, Traefik, β¦) in the cluster where Platz runs, if you plan to expose it through Ingress. cert-manager(optional) if you want the chart to issue a TLS certificate for you.
π¦ Installing the Chart
1. Add the repository
helm repo add platzio https://platzio.github.io/helm-charts
helm repo update
2. Create the namespace and secrets
Platz reads database and OIDC credentials from two pre-existing Kubernetes secrets. The chart never bundles or generates them.
Database credentials (default secret name: postgres-creds, configurable via database.secretName):
| Key | Example | Notes |
|---|---|---|
PGHOST | db.example.com | Hostname only. No port, no postgres:// prefix. |
PGPORT | 5432 | Standard libpq env var. |
PGUSER | platz | DB user with full privileges on the database. |
PGPASSWORD | your-password | Stored as-is in the secret. |
PGDATABASE | platz | The database name. Platz writes its tables here. |
OIDC client credentials (default secret name: oidc-config):
| Key | Example | Notes |
|---|---|---|
serverUrl | https://auth.example.com/realms/platz | OIDC issuer URL. |
clientId | platz | OAuth 2.0 client ID. |
clientSecret | your-secret | OAuth 2.0 secret. |
When configuring the OIDC application in your IdP, set the redirect URI to https://<your-platz-host>/auth/google/callback. The /google/ segment is historical β the same callback path is used regardless of provider.
3. Install
helm install platz platzio/platzio \
--namespace platzio \
--values platz-values.yaml \
--wait
A minimal platz-values.yaml looks like this:
auth:
adminEmails:
- [email protected]
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
rules:
- host: platz.example.com
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- platz.example.com
secretName: platz-tls
k8sAgent:
instances:
- name: this-cluster
provider: local
chartDiscovery:
instances:
- name: default
provider: oci
oci:
registryUrl: https://registry.example.com
pollInterval: 30s
π§Ή Uninstalling the Chart
helm uninstall platz -n platzio
This removes the workloads, services, ingress, ServiceAccounts, and (if created) the cert-manager Certificate and Issuer. It does not delete:
- The
postgres-credsandoidc-configsecrets you created yourself. - The PostgreSQL database. Platz's data β envs, deployments, tasks, audit history β lives there. Drop the database manually if you want a clean slate.
- The namespaces of any deployments Platz managed inside target clusters.
βοΈ Parameters
Images
| Name | Description | Default |
|---|---|---|
images.backend.repository | Backend (API + workers) image repository | platzio/backend |
images.backend.tag | Backend image tag | Chart appVersion |
images.backend.pullPolicy | Backend image pull policy | IfNotPresent |
images.frontend.repository | Frontend image repository | platzio/frontend |
images.frontend.tag | Frontend image tag | Chart appVersion |
images.frontend.pullPolicy | Frontend image pull policy | IfNotPresent |
images.helm.repository | Helm worker base image (used by k8s-agent runner) | platzio/base |
images.helm.tag | Helm worker base image tag | v9 |
imagePullSecrets | List of imagePullSecrets to attach to pods | [] |
Auth
| Name | Description | Default |
|---|---|---|
auth.adminEmails | Emails that should be promoted to site admin on first login | [] |
auth.oidc.serverUrl.valueFrom.secretKeyRef | Secret key holding the OIDC issuer URL | oidc-config / serverUrl |
auth.oidc.clientId.valueFrom.secretKeyRef | Secret key holding the OIDC client ID | oidc-config / clientId |
auth.oidc.clientSecret.valueFrom.secretKeyRef | Secret key holding the OIDC client secret | oidc-config / clientSecret |
Database
| Name | Description | Default |
|---|---|---|
database.secretName | Name of the Kubernetes Secret holding PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE | postgres-creds |
database.pool.maxSize | Maximum number of database connections per pod (DB_POOL_MAX_SIZE) | "" (50) |
database.pool.minIdle | Minimum idle connections to keep in the pool (DB_POOL_MIN_IDLE) | "" |
database.pool.connectionTimeoutSecs | Seconds to wait for a connection before erroring (DB_POOL_CONNECTION_TIMEOUT_SECS) | "" (30) |
database.pool.idleTimeoutSecs | Idle connection timeout in seconds (DB_POOL_IDLE_TIMEOUT_SECS) | "" (600) |
database.pool.maxLifetimeSecs | Maximum lifetime of a connection in seconds (DB_POOL_MAX_LIFETIME_SECS) | "" (1800) |
Empty pool values fall back to the binary's built-in defaults shown above.
API
| Name | Description | Default |
|---|---|---|
api.replicaCount | Replicas of the API deployment | 1 |
api.resources | CPU/memory requests and limits for the API container | See values.yaml |
api.serviceAccount.name | ServiceAccount name for the API | platz-api |
api.serviceAccount.annotations | Extra annotations on the API ServiceAccount | {} |
api.service.type | Service type for the API | ClusterIP |
api.service.port | Service port for the API | 80 |
api.service.containerPort | Container port for the API | 3000 |
api.extraEnv | Extra environment variables for the API container (EnvVar[]) | [] |
Frontend
| Name | Description | Default |
|---|---|---|
frontend.replicaCount | Replicas of the frontend deployment | 1 |
frontend.resources | CPU/memory requests and limits for the frontend container | See values.yaml |
frontend.serviceAccount.name | ServiceAccount for the frontend | platz-frontend |
frontend.serviceAccount.annotations | Extra annotations on the frontend ServiceAccount | {} |
frontend.service.type | Service type for the frontend | ClusterIP |
frontend.service.port | Service port for the frontend | 80 |
frontend.service.containerPort | Container port for the frontend | 80 |
k8s-agent
k8sAgent.instances[] is a list β one entry per Platz "agent". Most installs run a single instance; multi-cluster setups can run several so that each cluster has its own credentials.
| Name | Description | Default | | ----------------------------------------------------------------- | ------------------------------------------------------
Deploy platzio with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has platzio on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartplatzio is pinned at v0.7.0-beta.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply