Setting global config variables¶
Anaconda Enterprise 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 Anaconda Enterprise CLI, as you can add any variable supported by conda configuration.
- Log in to Anaconda Enterprise, 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.ymlconfiguration file. The default config map contains a placeholder only:
To add an environment variable, replace this placeholder with an acutual entry. For example, to configure Anaconda Enterprise 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 Anaconda Enterprise 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