How do I add proxy settings to Node?
Step-1: Add the proxy settings to /etc/environments
.
HTTP_PROXY=
HTTPS_PROXY=
NO_PROXY=localhost,127.0.0.1,10.42.0.1/8,10.43.0.1/8,<NODE_IPs>
Step-2: Login again with the same user for the proxy settings to function properly.
Step-3: Now, install the k3s.Step-4: The proxy settings listed above will also be added to
/etc/systemd/system/k3s.service.env
How do I change proxy settings at the node level after installing k3s?
Step-1: Edit the proxy settings in /etc/systemd/system/k3s.service.env
Step-2: Now, use the following command to restart the k3s service:
systemctl restart k3s
Note
The above configurations are only for node level proxy settings such as pulling helm charts etc. and will not be reflected in containers.How can I enable “squid-proxy” after registering the NextGen gateway?
Follow the below steps to enable squid-proxy.
- Retrieve the existing chart version by running the following command:
Replacehelm list -n <namespace>
<namespace>
with your gateways namespace. If you don’t have a custom namespace, usedefault
.
Example OutputIn this output, the chart version is located under the CHART section. For example, if it saysnextgen-gw-18.0.5
, the version is18.0.5
. - To enable Squid Proxy, use the following command, replacing
<Chart_version>
with the version you retrieved and<namespace>
with your gateway namespace:
After enabling squid-proxyhelm upgrade nextgen-gw oci://us-docker.pkg.dev/opsramp-registry/gateway-cluster-charts/nextgen-gw --version <Chart_version> --set squidproxy=enable --reuse-values -n <namespace>
How can I disable “squid-proxy” after registering the NextGen gateway?
Follow the below steps to disable squid-proxy.
- Retrieve the existing chart version by running the following command:
Replacehelm list -n <namespace>
<namespace>
with your gateways namespace. If you don’t have a custom namespace, usedefault
.
Example OutputIn this output, the chart version is located under the CHART section. For example, if it saysnextgen-gw-18.0.5
, the version is18.0.5
. - To disable Squid Proxy, use the following command, replacing
<Chart_version>
with the version you retrieved and<namespace>
with your gateway namespace:
After disabling squid-proxyhelm upgrade nextgen-gw oci://us-docker.pkg.dev/opsramp-registry/gateway-cluster-charts/nextgen-gw --version <Chart_version> --set squidproxy=disable --reuse-values -n <namespace>
How to configure the SNMP V3 trap credential in NextGen gateway
Refer the Document to configure the SNMP V3 trap credential in NextGen gateway: