1. How to troubleshoot the OpsRamp Gateway ?
Run the following command in the VM/host to check the advanced installation options:
sudo opsramp-collector-start install --help
2. How do I add proxy settings to a Node?
If you are using proxy server for gateway communication, then use the below settings:
Step-1: Add the proxy settings to /etc/environments
.
HTTP_PROXY= <http://<IPaddress>:<port>
HTTPS_PROXY=<http://<IPaddress>:<port>
NO_PROXY=localhost,127.0.0.1,10.0.0.0/8,<NODE_IPs>
Note: The above configuration is default K3s configuration and might change based on the network.
Step-2: Login again with the same user for the proxy settings to function properly.
Step-3: Install the k3s.
Step-4: The proxy settings listed above will also be added to /etc/system/systemd/k3s.service.env
.
3. How do I change proxy settings at the node level after installing k3s?
Follow these steps to change proxy settings at the node level after installing k3s:
Step-1: Edit the proxy settings in /etc/system/systemd/k3s.service.env
file.
Step-2: Use the following command to restart the k3s service:
sudo 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.4. Gateway registration help
Run the following command for gateway registration help:
sudo opsramp-collector-start install [flags]
Additional flags for gateway registration
Short | Long | Data type | Description |
---|---|---|---|
-c | --config string | string | Initial discovery configuration |
-S | --enable-squid | string | Enable squid proxy service (enable/disable) (default "disable") |
-e | --environment | string | environment to install opsramp gateway (k8s/docker) (default "k8s") |
-V | --helmchart-version | string | Helm chart version to deploy in k8s environment |
-I | --imageChannel | string | Pulls images from specified channel (stable/pre-release) (default "stable") |
-k | --key | string | Gateway unique authentication token |
-n | --namespace | string | k3s namespace (default "default") |
-i | --proxy-ip | string | Proxy server ipaddress |
-P | --proxy-password | string | Proxy server password |
-p | --proxy-port | string | Proxy server port |
-r | --proxy-protocol | string | Proxy server communication protocol (default "http") |
-U | --proxy-username | string | Proxy server username |
-R | --repository | string | Pull helm charts and images from custom repository (default "us-docker.pkg.dev") |
-t | --thirdPartyApp | string | Enable or Disable thirdpartyapp integration (default "disable") |
-u | --url | string | Opsramp url |
-v | --vprobe-version | string | vprobe version to deploy in docker environment (default "13.0.0") |
-h | --help | help for install |