Last updated
Was this helpful?
Last updated
Was this helpful?
This guide shows how to deploy Smartbox in minimal configuration. One instance of PostgreSQL and a two instances of Aidbox (Sandbox and Portal).
To have a production-ready deployment there also should be:
Database and Aidbox replicas
Backups and restoring
Logging and rotations
Monitoring and Alerting
Expose Smartbox to the Internet
Issuing SSL certificates
This guide does not define exposing Smartbox to the Internet
cluster is set up and running
kubectl
utility is installed
Two Aidbox are obtained
Email provider are obtained
GCP connect are obtained
Download the file
Run the command kubectl apply -f smartbox.yaml
PGUSER
PGPASSWORD
PGDATABASE: sandbox
AIDBOX_LICENSE
AIDBOX_ADMIN_ID
AIDBOX_ADMIN_PASSWORD
AIDBOX_BASE_URL: http://sandbox
AIDBOX_ZEN_ENTRYPOINT: 'smartbox.dev-portal/box'
AIDBOX_CLIENT_ID: sandbox-client
AIDBOX_CLIENT_SECRET: sandbox-secret
BOX_AUTH_LOGIN__REDIRECT: "/"
PGDATABASE: smartbox
AIDBOX_LICENSE
AIDBOX_ADMIN_ID
AIDBOX_ADMIN_PASSWORD
AIDBOX_BASE_URL: http://smartbox
AIDBOX_CLIENT_ID: portal-client
AIDBOX_CLIENT_SECRET: portal-secret
BOX_SMARTBOX_SANDBOX__URL: http://sandbox
BOX_SMARTBOX_SANDBOX__ADMIN: admin
BOX_SMARTBOX_SANDBOX__BASIC is deprecated. Use BOX_SMARTBOX_SANDBOX__ADMIN instead
Smartbox (as an Aidbox configuration) requires an instance of running PostgreSQL. There should be two databases on a PostgreSQL cluster:
First is for Sandbox
instance
Second is for Portal
instance
To get a k8s configuration file:
Populate the templates above
Combine all the templates to the .yaml
file separating the templates with ---
lines
The beginning of the file should look like.
To deploy Smartbox run the command.
The result should look like this.
To check if everything is working fine run the command.
There should be 3 running pods.
Populate the
The smartbox.yaml
is the k8s compiled templates configuration. The configuration components contained in the file are defined
BOX_PROVIDER_DEFAULT_* values. See the
BOX_BULK__STORAGE_GCP_* values. See the
All the available environment variables are defined
The guide covers only Smartbox mandatory components deployment in k8s