Additional Domain
If you installed OpenDAX v4 from a VM image on AWS/GCP, connect to your machine and become
deploy
user. Then, export the file path of the Helm chart with following command:export CHART_PATH=config/charts/opendax
If you installed OpenDAX v4 using a Helm chart directly, you should export the file path you used while deploying the platform initially:
export CHART_PATH=*path_to_chart*
Finally, run the following command to update the existing domain:
helm upgrade opendax "$CHART_PATH" \
-n ${DEPLOYMENT_ID:-odax} \
--reuse-values \
--set global.externalHostname=*new_domain*
To add another domain, please follow the steps:
- 1.Connect to the running VM with SSH.
- 2.Create a JWT with
superadmin
role:- 1.List pods in the
core
namespace with commandkubectl get po -n core
, and copy the name ofkited
pod. - 2.Execute to the
kited
pod with commandkubectl exec -it -n core *kited_pod_name* -- sh
(here replace*kited_pod_name*
with the copied name). - 3.Set Kaigara envs:
export KAIGARA_DEPLOYMENT_ID=odax
andexport KAIGARA_APP_NAME=gotrue
. - 4.Run
export KITE_AUTH_PRIVATE_KEY=$(kai env GOTRUE_JWT_SECRET | tr -d '"')
to save GoTrue Private Key. - 5.Run
kite secrets jwt -r superadmin
to create a JWT with thesuperadmin
role, and copy it.
- 3.Make an HTTP request to this endpoint, passing a JWT in the header (
Authorization: Bearer *your_jwt*
). Usually, the resulting command would look like this:
export jwt=*superadmin_jwt*
curl -v -XPOST *external_ip*.sslip.io/api/v2/opx/domain \
-H "Authorization: Bearer ${jwt}" \
-F Domain=*domain_to_add*
4. Wait for a few minutes for Kuberenetes resources to be created.
Last modified 5mo ago