Configuring the Python Repositories

On This Page

Configuring pip and Conda environmental variables

You can define pip and Conda key-value pairs as:

  • Environmental variables for shell and Jupyter
  • Default build arguments for Nuclio and MLRun

The values are applied to every instance of these services. You can define any variable that is supported by pip or Conda. Changing the Pypi server URL causes a restart of Jupyter, MLRun, Nuclio, and Shell, services.

Configuring the variables in the Dashboard

To configure pip and Conda environmental variables for your cluster:

  1. Open the platform dashboard and select the settings gear-wheel icon () from the top-right toolbar of any page to open the Settings dialog.

  2. Press Python packages, then under PIP Options, press Create a new option and fill in one or more key-value pairs.

  3. Under Conda options, press Create a new option and fill in one or more key-value pairs.

  4. Press Apply. A loading spinner displays until the values are propagated to the services.

  5. To delete a key-value pair, press the Delete icon next to the row of the key-value pair.

Creating a PyPI certificate secret and loading it to Kubernetes

Run this procedure if you have an unsigned certificate in a closed network, so that Provazio can inject the certificate into MLRun and Nuclio.

  1. Create a secret in the relevant namespace (default-tenant) with the name user-custom-pypi-cert and this skeleton:

    apiVersion: v1
    kind: Secret
    metadata:
      name: user-custom-pypi-cert
      data:
        pip-ca-certificates.crt: <CERT_CONTENT>
        ```
    	   
    
  2. Restart MLRun and Nuclio.

See Also