[!WARNING]
Disclaimer: This repository is currently a work in progress. While contributions and feedback are welcome, please note that the code and features may change frequently, and some functionalities may not be fully implemented or tested. Use this project at your own risk.
This chart bootstraps a safe-config-service deployment on a Kubernetes cluster using the Helm package manager.
We also package the following helm charts from Bitnami for you to optionally use:
Chart | Descrption |
---|---|
PostgreSQL | For use as a database |
To install the chart with the release name [RELEASE-NAME]
:
helm repo add safe https://5afe.github.io/safe-helm-charts/charts/packages
helm install [RELEASE-NAME] safe/safe-config-service
The command deploys safe-config-service 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 the [RELEASE-NAME]
deployment:
helm uninstall [RELEASE-NAME]
The command removes all the Kubernetes components associated with the chart and deletes the release.
To upgrade the [RELEASE-NAME]
deployment with the latest version:
helm upgrade [RELEASE-NAME] safe/safe-config-service
The following table lists the configurable parameters of the safe-config-service chart and their default values.
See Customizing the Chart Before Installing. To see all configurable options with detailed comments:
helm show values safe-config-service
Parameter | Description | Default |
---|---|---|
nameOverride |
Provide a name in place of safe-config-service for app: labels |
"" |
fullnameOverride |
Provide a name to substitute for the full names of resources | "" |
Parameter | Description | Default |
---|---|---|
replicaCount |
Number of instance for safe-config-service-web | 1 |
image.repository |
safe-config-service image name | safeglobal/safe-config-service |
image.tag |
safe-config-service image tag | latest |
image.pullPolicy |
Image pull policy | Always |
extraEnv |
Specify additional environment variables | [] |
Parameter | Description | Default |
---|---|---|
config.debug |
Enable debug mode | true |
config.secretKey |
Django secret key | "" |
config.csrf.trustedOrigins |
Trusted origins should refer to safe-wallet-web URL | "" |
config.clientGateway.url |
URL of the Client-Gateway | "" |
config.clientGateway.token |
Client-Gateway flush token | "" |
config.database.runMigration |
Run Database migration on startup | true |
config.database.host |
Database Host if safe-config-service-postgresql.enabled=false |
"" |
config.database.port |
Database Port if safe-config-service-postgresql.enabled=false |
"" |
config.database.user |
Database Username if safe-config-service-postgresql.enabled=false |
"" |
config.database.password |
Database Password if safe-config-service-postgresql.enabled=false |
"" |
config.database.db |
Database DB if safe-config-service-postgresql.enabled=false |
"" |
config.admin.auth.enabled |
Autoconfigure Django admin panel on startup | true |
config.admin.auth.username |
Django admin panel username | root |
config.admin.auth.password |
Django admin panel password | root123 |
config.admin.auth.email |
Django admin panel email | root@example.com |
Parameter | Description | Default |
---|---|---|
web.nodeSelector |
{} |
|
web.affinity |
{} |
|
web.tolerations |
{} |
|
web.securityContext |
{} |
|
web.podSecurityContext |
{} |
|
web.resources |
{} |
Parameter | Description | Default |
---|---|---|
ingress.enabled |
Enable ingress | true |
ingress.ingressClassName |
Ingress class name | nginx |
ingress.host |
Ingress host | cgw-service.minikube.net |
ingress.annotations |
Ingress annotations | <pre>nginx.ingress.kubernetes.io/force-ssl-redirect: “true” nginx.ingress.kubernetes.io/enable-cors: “false”</pre> |
Parameter | Description | Default |
---|---|---|
safe-config-service-postgresql.enabled |
Spin up a PostgreSQL instance | true |
Refer to bitnami/postgresql for configuration.