Configure PEG to work with a proxy
Configure PEG to use a proxy for outbound traffic if required.
Deploy PEG VM
Note: When you deploy the PEG VM, ensure that it has a static IP or at least a static domain name. To configure the VM static IP address, use the mechanism provided by your VPC provider.
- Log in to the PEG VM through ssh.
Copy your proxy certificate, if one is required, to the following
Note: The proxy file name must have a .crt extension and must be in the Base64 PEM format (called openssl format in some systems).
sudo cp <your proxy certificate.crt> /usr/local/share/ca-certificates/
sudo cp <your proxy certificate.crt> /peg_v/certs/
For the OS to load the certificate, run the following command:
Add the following to the
/etc/environment file(including the username and password if required) using the http_proxy and https_proxy values for your environment.Note: Although this is not a requirement, the https_proxy value is often the same as the http_proxy, with the protocol being HTTP for both.Enter the URL in the following format:
<your http/https proxy url>Enter the username and password if required.http://username:password@host:port/
http_proxy=<your http proxy url> https_proxy=<your https proxy url>
Log out of your ssh session and then log back in.
This allows the proxy settings to be picked up by the operating system.
Edit the following values as follows in
~/peg/text_pipeline/values-gpu.yaml. (These values are at the bottom of the file).Enter the URL in the following format:
<your https proxy url>. Enter the username and password if required. http://username:password@host:port/
If you do not use a certificate for the proxy,
fluentd_cert_pathshould be left as follows: ""
fluentd_cert_path: "/peg_v/certs/<your proxy.crt>"
https_proxy: "<your https proxy url>"
If you performed the steps in Set up and configure PEG
before performing the proxy steps outlined in the previous steps, perform the
cd peg && ./peg_start.sh.
Select Cluster Management and press Enter, and then select
Load Certificates and press Enter again.