Para is a multi-tenant backend service for busy developers.
This chart bootstraps a Para deployment on a Kubernetes cluster using the Helm package manager.
This chart installs Para in a K8s cluster. We also offer a fully managed Para service at ParaIO.com
- Helm 3.0+
- Kubernetes 1.21+ (for the optional CronJob helper)
Note: The Para configuration file is mounted as a volume from the local filesystem to the pod.
When Para starts up for the first time, it saves the root app keys to that file inside the pod at /para/config/application.conf.
You can override the secret key for the root app with rootSecretOverride (see values.yaml for details)
In the ./helm/ directory of this repo, execute the following console command:
$ helm install para ./paraThe command deploys Para on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
To uninstall/delete the para deployment:
$ helm uninstall paraThe command removes all the Kubernetes components associated with the chart and deletes the release.
Para plugins are thin JARs. The official ones can be baked into the image at build time via Maven profiles, which is what the default image does:
ARG BUILD_OPTS="-Pfatjar,sql,lucene"To bake in a different set, build the image with the profiles you need, for example
-Pfatjar,sql,lucene,mongodb. Plugins included this way are resolved by Maven and packaged into
BOOT-INF/lib, so there is nothing to download at runtime.
Any plugin not baked into the image can be installed at runtime through the plugin API:
$ curl -X POST https://your-para-host/v1/_plugins/para-dao-mongodb/installThe plugin API is restricted to the root app (app:para), so the request must be signed with the
root app keys. Messages: Only the root app can manage plugins. Each artifact is checksum-verified
before installation, and Para must be restarted afterwards.
See the plugins API for details.
If a thin plugin JAR is added directly to /para/lib (for example, with a Dockerfile ADD), Para
scans the folder during startup before loading plugins. It reads the dependency manifest inside the
JAR and fetches missing runtime dependencies from Maven Central. The container therefore needs
outbound access to Maven Central, unless all dependency JARs are already present in /para/lib.
Only one version of each plugin may be installed. Para stops startup if it finds multiple versions of one plugin. Installing a new version replaces the old plugin version; uninstalling a plugin also removes resolver-managed dependencies that no other plugin uses. Dependency JARs supplied by the operator are preserved.
To turn the whole plugin API off, set the plugins_api_enabled config property (default true).
Requests are then rejected with 403 Forbidden and the message Plugins API is disabled.
application.conf
para.plugins_api_enabled = "false"JDBC drivers are never baked into the image, because which one you need depends on your database.
Drivers are also not published to Maven Central, so they must be downloaded into /para/lib before
the cluster is initialized, using initContainers. Set downloadInitContainer.enabled: true and
edit downloadInitContainer.command:
values.yaml
downloadInitContainer:
command: "wget https://jdbc.postgresql.org/download/postgresql-42.7.7.jar -O /para/lib/postgresql-jdbc.jar"
enabled: trueThe javaOpts value sets -Dloader.path=/para/lib, which is what puts that directory on the
classpath. The chart builds Para with PropertiesLauncher for this reason; the default Spring Boot
JarLauncher ignores loader.path and only reads BOOT-INF/lib.
application.conf
para.dao = "SqlDAO"
para.sql.driver = "org.postgresql.Driver"
para.sql.url = "postgresql://localhost:5432/para"
para.sql.user = "postgres"
para.sql.password = "mysecretpassword"If you prefer to inject predetermined secret key for the root Para app app:para
for initialization on the first run, set rootSecretOverride with the exact Secret
payload you want rendered. The chart creates a Secret named para-root-secret by
default, or you can provide rootSecretOverride.name as the Secret name.
rootSecretOverride:
name: para-root-app-secret
type: Opaque
stringData:
paraSecret: "custom_secret"When a Secret already exists in the cluster, skip rendering a new one by
configuring rootSecretExternal with the name/key to reference. The deployment
will mount the value using secretKeyRef.
rootSecretExternal:
name: para-root-app-secret
key: paraSecretThe following table lists the configurable parameters of the Para chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository |
Para image name | erudikaltd/para |
image.tag |
Para image tag | latest_stable |
image.pullPolicy |
Image pull policy | IfNotPresent |
image.pullSecrets |
References to image pull secrets | [] |
service.type |
Kubernetes Service type | ClusterIP |
service.port |
Service HTTP port | 8080 |
service.name |
Service port name | http |
applicationConf |
Para configuration block (config map) | Example Para config in values.yaml |
rootSecretOverride |
Optional root secret override, saved as Secret in the cluster | {} |
rootSecretExternal |
Reference to an existing Secret/key for the root Para secret | {} |
persistentVolumes.data.size |
Requested capacity for /para/data PVC |
5Gi |
persistentVolumes.data.accessModes |
Access modes for /para/data PVC |
[ReadWriteOnce] |
persistentVolumes.data.storageClassName |
StorageClass for /para/data PVC |
"" |
persistentVolumes.lib.size |
Requested capacity for /para/lib PVC |
1Gi |
persistentVolumes.lib.accessModes |
Access modes for /para/lib PVC |
[ReadWriteOnce] |
persistentVolumes.lib.storageClassName |
StorageClass for /para/lib PVC |
"" |
downloadInitContainer.enabled |
Run a command to fetch plugin dependencies into /para/lib |
false |
downloadInitContainer.command |
Shell snippet (wget/curl) executed by the init container | wget https://jdbc.org/driver.jar -O /para/lib/jdbc.jar |
javaOpts |
JAVA_OPTS JVM arguments |
-Xmx512m -Xms512m -Dpara.port=8080 -Dloader.path=/para/lib -Dconfig.file=/para/config/application.conf |
podAnnotations |
Pod annotations | {} |
extraEnvs |
Extra environment variables | [] |
updateStrategy |
Deployment update strategy | RollingUpdate |
ingress.enabled |
Create Ingress | false |
ingress.className |
Ingress class name | "" |
ingress.hosts[0].host |
Hostname for the Ingress | para.local |
ingress.hosts[0].paths[0].path |
HTTP path served by the Ingress | / |
ingress.tls |
TLS configuration | [] |
resources |
CPU/Memory resource requests/limits | {} |
nodeSelector |
Node selector | {} |
tolerations |
Tolerations | [] |
affinity |
Affinity rules | {} |
For more information please refer to the Para README.
A YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
$ helm install para ./para -f values.yamlTip: You can use the default values.yaml