schema-registry
by Spartan
Confluent Schema Registry pointed at an external Kafka cluster (e.g. AWS MSK over SASL/SCRAM). Stateless Deployment + ClusterIP Service; all durable state lives in the Kafka `_schemas` topic. The chart only ships namespace-scoped resources (Deployment, Service). Namespace, SCRAM credentials Secret, and the `_schemas` topic itself are the consumer's responsibility to bootstrap — typically via Terraform alongside the MSK cluster.
About this chart
schema-registry
Confluent Schema Registry
pointed at an external AWS MSK cluster over SASL/SCRAM. Stateless
Deployment + ClusterIP Service; all durable state lives in the
Kafka _schemas topic.
Opinionated: this chart targets one specific path — Confluent SR talking to AWS MSK via SASL/SCRAM, with the SCRAM credential and the
_schemastopic provisioned out-of-band (Terraform). If you want the full Confluent Platform Helm chart with ZooKeeper bundled, use cp-helm-charts upstream.
When to use
- You run AWS MSK (managed Kafka).
- You want a thin, single-purpose SR chart you can read in one screen.
- The
_schemastopic + SCRAM credential are managed by Terraform.
What this chart ships
All resources are namespace-scoped (drops in a default-deny
AppProject):
Deploymentfor the SR pod (env-only config — noConfigMap)ClusterIPServiceexposing port 8081 inside the cluster
Prerequisites (consumer-bootstrapped — NOT in this chart)
These must exist before installing the chart. Provision once via the consumer's Terraform.
| Resource | Owner |
|---|---|
Namespace (schema-registry by default) | Terraform |
Secret with key jaas holding a single-line org.apache.kafka.common.security.scram.ScramLoginModule required username=... password=... ; | Terraform |
MSK _schemas topic with cleanup.policy=compact, min.insync.replicas=2, replication.factor=3 (prod) | Terraform |
Kafka ACL granting the SCRAM user Read+Write on topic _schemas and on group prefix schema-registry | Strimzi User Operator via KafkaUser CRD |
| EKS Fargate Profile selector on the SR namespace (if running on Fargate) | Terraform |
Required values
env: dev # observability label
mskBootstrapServersSaslScram: "b-1.<cluster>.<region>.amazonaws.com:9096,..."
scramSecret:
name: schema-registry-creds # Secret name created by Terraform
jaasKey: jaas # Secret key holding the JAAS string
kafkaStore:
topic: _schemas # MUST be _schemas — SR refuses any other value
replicationFactor: 3 # prod: 3, dev: 1
Connecting from clients
In-cluster clients reach SR at:
http://schema-registry.<namespace>.svc.cluster.local:8081
There is no Ingress in this chart by design — SR has no auth and must stay private.
Image
confluentinc/cp-schema-registry:{{ .Chart.AppVersion }} from Docker Hub.
Confluent Community License (CCL) — fine for internal self-hosted use,
no redistribution.
Operations
- Pod restart rebuilds the in-memory index by replaying
_schemas. Cold start scales linearly with the topic — 1-3 s typical, much longer once you have tens of thousands of schemas. - Multiple replicas elect a leader via Kafka. Only the leader writes; all
replicas serve reads. Bump
replicaCountto 2-3 in prod.
Related
kafka-userschart — declare the SR SCRAM user's ACLstrimzi-user-operatorchart — reconcile that ACL onto MSK
Deploy schema-registry with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has schema-registry 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 chartschema-registry is pinned at v0.2.1 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