Setting global config variables#
Data Science & AI Workbench provides a secondary config map (named anaconda-enterprise-env-var-config
) that you can use to configure the platform. Any environment variables that you add to this config map will be available to sessions, deployments and schedules. This is a convenient alternative to using the Workbench CLI, as you can add any variable supported by conda configuration.
Log in to Workbench, select the Menu icon in the top right corner and click the Administrative Console link displayed at the bottom of the slide out window.
Click Manage Resources.
Log in to the Operations Center using the Administrator credentials configured after installation.
Select Configuration from the menu on the left.
Use the Config map drop-down menu to select the
anaconda-enterprise-env-var-config.yml
configuration file. The default config map contains a placeholder only:ENV_VAR_PLACEHOLDER: foo
.To add an environment variable, replace this placeholder with an actual entry. For example, to configure Workbench to use a proxy for conda packages, you might add entries that resemble the following:
HTTP_PROXY: proxy.url.com:3128 NO_PROXY: anaconda-test.url.com
Click Apply to save your changes.
To update Workbench with your changes, restart services by running these commands on the master node:
sudo gravity enter kubectl get pods | grep 'ap-deploy\|ap-workspace' | cut -d' ' -f1 | xargs kubectl delete pods