go-prism

by djcass44

Helm chartv0.1.7App 0.1.0Verified publisher

Kubernetes deployment of Prism

About this chart

Go Prism Helm Chart

This chart provides a deployment of Prism. Prism is an application designed for caching application packages including Java (Gradle and Maven), NPM, Debian, Alpine, GoLang and static files.

This chart is still in development and may be missing some configuration options. The deployed instance of Prism is still in development and should not be used for production.

Requirements

Helm 2 is not supported.

  • Helm 3
  • Kubernetes 1.18+

Configuration

Globals

ParameterDescriptionDefault
global.image.pullPolicySet the pullPolicy for all components.IfNotPresent
global.ingress.hostSet the Host for all Ingress objects.prism.example.org
global.ingress.annotationsAnnotations to be set on all Ingress objects.See values.yaml
global.metrics.enabledEnables Prometheus metrics.false
global.metrics.serviceMonitor.enabledEnables the creation of a Prometheus ServiceMonitor.false
global.prism.masterKeyMaster key used for encrypting data.(random 16 characters)
global.prism.logging.debugEnables debug logging for all components.false
global.prism.logging.jsonEnables JSON-formatted logging output for all components.false

API

The API is the user-facing component of Prism. It provides a REST interface for the Web UI as well as proxying requests to the Reactor and enabled plugins (e.g. GoProxy). The API communicates with the Reactor over a gRPC connection. It communicates with plugins over HTTP.

Database credentials are stored in a Kubernetes secret.

ParameterDescriptionDefault
api.prism.reactorURLAddress of the Reactor.prism-reactor:8080
api.prism.goproxyURL(disabled by default) Address of the GoProxy.""
api.prism.dsnPostgreSQL DSN.""
api.prism.adminUserFull name of the initial administrator.""

Reactor

The Reactor is the workhorse component of Prism. It is responsible for fetching data from remotes as well as managing caches. The Reactor communicates with the API over a gRPC connection.

S3 credentials are stored in a Kubernetes secret.

ParameterDescriptionDefault
reactor.prism.serviceURLAddress of the API.prism-api:8080
reactor.prism.masterKeyMaster key used for encrypting data.(random 16 characters)
reactor.s3.bucketS3 bucket to store data in.
reactor.s3.regionS3 regionus-east-1
reactor.s3.pathStyleUse path-style buckets rather than DNS-style. Useful for self-hosted installations such as Miniofalse
reactor.s3.endpointUse a custom S3 endpoint.
reactor.s3.accessKeyS3 access key.
reactor.s3.secretKeyS3 secret key.

GoProxy

This plugin is experimental and has performance problems. You should not use it in production yet.

The GoProxy plugin allows Prism to support the GOPROXY protocol and natively cache GoLang modules.

If enabled, it will create a Refraction called go1 containing a remote called GOPROXY. If a Refraction with this name already exists, it will be replaced. The GoProxy plugin will use this Refraction to cache data in the Reactor.

The GoProxy communicates with the API and Reactor over a gRPC connection.

ParameterDescriptionDefault
goproxy.enabledEnables the experimental GoProxy integration.false
goproxy.prism.serviceURLAddress of the API.prism-api:8080
goproxy.prism.reactorURLAddress of the Reactor.prism-reactor:8080

Deploy go-prism with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has go-prism 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 chartgo-prism is pinned at v0.1.7 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