Quick Trial Mode
This section provides steps to deploy Eggplant DAI in Kubernetes using the quick trial mode. Before progressing, make sure you've followed the Before you Begin section.
You must define values for the required settings in the Helm chart by using a configuration file. Use any text editor to create a file with the following content, replacing each <placeholder> with its appropriate value. The sample file is named as dai.yaml in these instructions, but you can choose a name of your preference. If you're upgrading an existing installation, then you should generate this file from your existing installation as described further below.
- '<ingress hostname>'
password: '<rabbitmq password>'
erlangCookie: '<rabbitmq cookie>'
- license is your DAI license key string supplied by Eggplant.
- tag is the version of Eggplant DAI to install. Don’t change this value unless advised to do so by Eggplant.
- <ingress hostname> is the ingress hostname for your Kubernetes DAI namespace. You must supply this value as appropriate for your Kubernetes cluster.
- <token> is your DAI service token, as supplied by Eggplant.
- <secret> is your DAI JWT secret, as supplied by Eggplant.
- <rabbitmq password> is the password of your choice for RabbitMQ to use.
- <rabbitmq cookie> is the 30-byte cookie (base-64 encoded) you need to supply for RabbitMQ to use (e.g., to generate: head -c30 /dev/urandom | base64).
For a complete list of values and their defaults, see the Values page.
The quick trial configuration includes a PostgreSQL instance inside the Kubernetes namespace such that no further database setup is required. Note that the quick trial database is ephemeral: it will be destroyed if the Helm chart is deleted.
Install the DAI Helm chart using the prepared configuration file, like this:
or, to upgrade:
$ helm upgrade dai eggplant/dai --version 0.7.2 -f dai.yaml --namespace dai
The eggplant/dai chart is installed as a Helm release called (the first parameter) into the Kubernetes namespace, also called dai (the --namespace parameter), using the parameters supplied in the dai.yaml file is used as an example in these instructions, but you can use any name you prefer.
To watch the cluster building, use the following command.
All the items will display as Running after the cluster is built.
After Eggplant DAI is installed, you should use a web browser to access the ingress hostname specified in the configuration file.