ELMA365 On-Premises > Other > Deprecated ELMA365 in MicroK8s / Install ELMA365 to MicroK8s behind a proxy

Install ELMA365 to MicroK8s behind a proxy

начало внимание

The article provides instructions for the deprecated system edition, ELMA365 On‑Premises in MicroK8s. Please see up-to-date editions in the ELMA365 On‑Premises article.

конец внимание

If you want to use a proxy server to install and operate the system, you need to assign new values to the environment variables that are used to define the proxy.

Open the /etc/environment configuration file (for example, sudo nano /etc/environment) and add the following values:

HTTPS_PROXY="http://proxy_user:proxy_pass@host:port/" 
HTTP_PROXY="http://proxy_user:proxy_pass@host:port/" 
NO_PROXY="localhost,example.com,127.0.0.0/8,10.0.0.0/8,169.254.0.0/16,192.168.0.0/16,100.64.0.0/10,172.16.0.0/12,cluster.local,linkerd.svc"
https_proxy="http://proxy_user:proxy_pass@host:port/" 
http_proxy="http://proxy_user:proxy_pass@host:port/" 
no_proxy="localhost,example.com,127.0.0.0/8,10.0.0.0/8,169.254.0.0/16,192.168.0.0/16,100.64.0.0/10,172.16.0.0/12,cluster.local,linkerd.svc"

Where:

proxy_user is the username used to log in to the proxy server.

proxy_pass is the password used to log in to the proxy server.

host is the proxy server’s host.

port is the proxy server’s port.

Save and close the file.

начало внимание

You have to sign out and sign in to the system again to activate the new proxy settings.

конец внимание

Make sure that the IP addresses, IP ranges, and domains that the proxy should not be used for are specified in the no_proxy and NO_PROXY variables.

After setting up the proxy server, install ELMA365. Read more in Install ELMA365 to MicroK8s.

Change proxy settings

To change the proxy’s settings, you need to assign new values to the environment variables used to set the proxy.

To do that:

  1. Open the /etc/environment file (for example, sudo nano /etc/environment) and change the values in it in the same way you specified them when you were setting up the proxy. Save and close the file.
  2. Sign out and sign in to the system again to activate the new proxy settings.
  3. Run the following command:

elma365ctl reconfigure

You will see the settings that are currently used and the new settings from the environment variables.

  1. Confirm that you want to change the proxy’s settings. Then move on to configuring other parameters (you can leave them as they are). After that the services will restart with the new proxy settings.

Note that when using a proxy, you need to add custom services using elma365ctl commands: add-service, expose-service, and delete-service.

Found a typo? Highlight the text, press ctrl + enter and notify us