platzio

by Platz.io

Helm chartv0.7.0-beta.5App 0.7.0-beta.5Apache-2.0Verified publisher

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:

ConceptWhat it is
EnvA logical grouping of clusters and the deployments that run on them. Roles are assigned per env.
ClusterA Kubernetes cluster registered with Platz. Attached to at most one env.
Deployment KindA category of deployments β€” usually one per service.
DeploymentA single Helm release Platz manages. Lives in its own namespace inside a cluster.
Helm RegistryAn OCI registry (ECR or generic) that Platz scans for charts.
Chart ExtensionOptional YAML files that ship inside a Helm chart and give Platz richer inputs, outputs, and forms.
TaskA 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 runs helm install / helm upgrade inside 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/v1 Ingress 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):

KeyExampleNotes
PGHOSTdb.example.comHostname only. No port, no postgres:// prefix.
PGPORT5432Standard libpq env var.
PGUSERplatzDB user with full privileges on the database.
PGPASSWORDyour-passwordStored as-is in the secret.
PGDATABASEplatzThe database name. Platz writes its tables here.

OIDC client credentials (default secret name: oidc-config):

KeyExampleNotes
serverUrlhttps://auth.example.com/realms/platzOIDC issuer URL.
clientIdplatzOAuth 2.0 client ID.
clientSecretyour-secretOAuth 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-creds and oidc-config secrets 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

NameDescriptionDefault
images.backend.repositoryBackend (API + workers) image repositoryplatzio/backend
images.backend.tagBackend image tagChart appVersion
images.backend.pullPolicyBackend image pull policyIfNotPresent
images.frontend.repositoryFrontend image repositoryplatzio/frontend
images.frontend.tagFrontend image tagChart appVersion
images.frontend.pullPolicyFrontend image pull policyIfNotPresent
images.helm.repositoryHelm worker base image (used by k8s-agent runner)platzio/base
images.helm.tagHelm worker base image tagv9
imagePullSecretsList of imagePullSecrets to attach to pods[]

Auth

NameDescriptionDefault
auth.adminEmailsEmails that should be promoted to site admin on first login[]
auth.oidc.serverUrl.valueFrom.secretKeyRefSecret key holding the OIDC issuer URLoidc-config / serverUrl
auth.oidc.clientId.valueFrom.secretKeyRefSecret key holding the OIDC client IDoidc-config / clientId
auth.oidc.clientSecret.valueFrom.secretKeyRefSecret key holding the OIDC client secretoidc-config / clientSecret

Database

NameDescriptionDefault
database.secretNameName of the Kubernetes Secret holding PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASEpostgres-creds
database.pool.maxSizeMaximum number of database connections per pod (DB_POOL_MAX_SIZE)"" (50)
database.pool.minIdleMinimum idle connections to keep in the pool (DB_POOL_MIN_IDLE)""
database.pool.connectionTimeoutSecsSeconds to wait for a connection before erroring (DB_POOL_CONNECTION_TIMEOUT_SECS)"" (30)
database.pool.idleTimeoutSecsIdle connection timeout in seconds (DB_POOL_IDLE_TIMEOUT_SECS)"" (600)
database.pool.maxLifetimeSecsMaximum 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

NameDescriptionDefault
api.replicaCountReplicas of the API deployment1
api.resourcesCPU/memory requests and limits for the API containerSee values.yaml
api.serviceAccount.nameServiceAccount name for the APIplatz-api
api.serviceAccount.annotationsExtra annotations on the API ServiceAccount{}
api.service.typeService type for the APIClusterIP
api.service.portService port for the API80
api.service.containerPortContainer port for the API3000
api.extraEnvExtra environment variables for the API container (EnvVar[])[]

Frontend

NameDescriptionDefault
frontend.replicaCountReplicas of the frontend deployment1
frontend.resourcesCPU/memory requests and limits for the frontend containerSee values.yaml
frontend.serviceAccount.nameServiceAccount for the frontendplatz-frontend
frontend.serviceAccount.annotationsExtra annotations on the frontend ServiceAccount{}
frontend.service.typeService type for the frontendClusterIP
frontend.service.portService port for the frontend80
frontend.service.containerPortContainer port for the frontend80

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartplatzio is pinned at v0.7.0-beta.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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