FAQs
FAQs regarding VM/Node Install of K2 Agents
How to run a K2 agent with proxy configuration?
In accordance to the configuration made in certain application environments, where the access to the outside world is restricted, a HTTP or HTTPS proxy is used to allow the traffic to pass through. K2 agent supports such proxy configuration and can be configured using the below steps.
Step 1: Configure the proxy either on the host or in the agent configuration.
Note:
If proxy configuration is already done on host, please skip the below steps as the agent will automatically pick the configuration.
The proxy configuration on HOST is done using HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables.
Step 2: Update the proxy configuration in the env.properties file.
Properties to be configured:
custom_http_proxy
custom_https_proxy
custom_no_proxy
Step 3: Follow the K2 Agent installation steps to complete the setup the agent with the above configuration.
How to configure K2 agent to use a Custom SSL Certificate to connect with K2 Web Portal?
K2 agent support custom SSL certificates and can be configured to work with them.
Step 1: Add the CA certificate location in the env.properties file present in the installer directory.
Properties to be configured:
custom_ca_certs
Note:
The CA certificate file must have .crt extension as other file extensions are not supported.
This property accepts comma separated .crt file names.
Sample Configuration:
custom_ca_certs="/tmp/myca.crt"
Step 2: Follow the K2 Agent installation steps to complete the setup the agent with the above configuration.
How to attach an application running with linux user different from the one used for agent installation?
Step 1: Copy the language collectors directory(k2-ic) to the home directory of the desired linux user.
Location of language collectors:
${HOME}/k2-ic
Step 2: Update the ownership of the k2-ic directory in the desired linux user's home directory.
chown -R [desired_linux_user]:[desired_linux_group] k2-ic
Sample Command: chown -R centos:centos k2-ic
Step 3: Update the permissions on the k2-ic directory in the desired linux user's home directory.
chmod 700 k2-ic
Step 4: Follow the below link based on your application type for Language Agent Installation to protect your application.
Last updated
Was this helpful?