Distributed Deployment: Configure Agent Environment
In case of distributed deployment, all configuration is stored as part of Kubernetes cluster.
Moreover, product is designed to run multiple customers at once. Hence, prior to building agent
installer/s, we need to configure agent environment on deployment workstation. Basically, this
will switch the agent build context to the desired customer.
When Quantotto Server CLI is installed, among other things, agent config script is generated and placed
into $QUANTOTTO_HOME
folder.
To activate build context for specific customer, on Deployment Workstation for distributed deployment,
run source $QUANTOTTO_HOME/agent_cfg.sh
passing your Customer ID and Kubernetes server namespace as arguments.
# switch context to customer 'acme' in 'quantotto' server namespace
source $QUANTOTTO_HOME/agent_cfg.sh acme quantotto
To verify that context was switched, check the contents of $QUANTOTTO_HOME/.env
.
Specifically, CUSTOMER_ID
should be set to the value you provided and rest of the variables should be non-empty.
$ cat $QUANTOTTO_HOME/.env
CUSTOMER_ID=acme
FRAMES_PORT=15000
HYDRA_CUSTOMER_CLIENT_SECRET=Zk3kd9343e039034rdllsddk
SERVER_IP=192.168.0.212
PORTAL_FQDN=portal.example.com