A Helm chart for deploying Prisma Studio, a visual database editor for your Prisma schema, to Kubernetes.
This Helm chart deploys Prisma Studio in a Kubernetes cluster. Prisma Studio provides a modern interface for viewing and editing data in your database.
- Kubernetes 1.16+
- Helm 3.0+
- A database (currently only supports Postgresql) accessible from your Kubernetes cluster
git clone https://github.com/ASATechnologies/prisma-studio-helm-chart.gitTo install the chart with the release name my-release-name:
helm install my-release-name ./prisma-studio-helm-chart -f my-db-values.yamlThe following table lists the configurable parameters of the Prisma Studio chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository |
Image repository | timothyjmiller/prisma-studio |
image.tag |
Image tag | latest |
image.pullPolicy |
Image pull policy | Always |
replicaCount |
Number of replicas | 2 |
database.type |
Database type | postgresql |
database.port |
Database port | 5432 |
database.name.value |
Database name | "" |
database.name.valueFrom |
Reference to database name | {} |
database.host.value |
Database host | "" |
database.host.valueFrom |
Reference to database host name | {} |
database.user.value |
Database username | "" |
database.user.valueFrom |
Reference to database username secret | {} |
database.password.value |
Database password (not recommended - use valueFrom) | "" |
database.password.valueFrom |
Reference to database password secret | {} |
service.type |
Kubernetes Service type | ClusterIP |
service.port |
Service port | 80 |
service.targetPort |
Port exposed by the container | 5555 |
service.protocol |
Service protocol | TCP |
resources.requests.cpu |
CPU resource request | 20m |
resources.requests.memory |
Memory resource request | 55M |
You can configure database credentials directly in values or reference existing secrets:
# Direct values
database:
name:
value: "mydatabase"
host:
value: "postgresql-host"
user:
value: "postgres"
password:
value: "password123" # Not recommended for production
# Using existing secrets
database:
name:
value: "mydatabase"
host:
value: "postgresql-host"
user:
valueFrom:
secretKeyRef:
name: db-credentials
key: username
password:
valueFrom:
secretKeyRef:
name: db-credentials
key: passwordCreate a values file (values-external-db.yaml):
replicaCount: 1
database:
name:
value: "myapp"
host:
value: "postgres.example.com"
user:
valueFrom:
secretKeyRef:
name: postgres-credentials
key: username
password:
valueFrom:
secretKeyRef:
name: postgres-credentials
key: password
service:
type: ClusterIPCreate the required secret:
kubectl create secret generic postgres-credentials \
--from-literal=username=dbuser \
--from-literal=password=dbpasswordInstall the chart:
helm install prisma-studio ./prisma-studio -f values-external-db.yamlAfter deploying, you can access Prisma Studio by port-forwarding the service:
kubectl port-forward svc/prisma-studio-svc 5555:5555Then open your browser at http://localhost:5555
To uninstall/delete the prisma-studio deployment:
helm uninstall prisma-studioContributions are welcome! Please feel free to submit a Pull Request.
This chart is licensed under the MIT License.