In this document, you will find a step-by-step guide on how to install the Network Connector on Google Cloud.
:::(Info) (Info) Use the automatic container configuration functions available in the instance creation interface of Compute Engine to simplify the process. :::
Create instance on Google Cloud
- Go to the Compute Engine page in the Google Cloud dashboard.
- Select the option VM Instances no menu lateral.
- Click in Create Instance to start the process of creating a new instance
- On the instance creation screen, define a name for the instance and choose the desired region.
- Make the following changes to the configuration parameters:
- Series: E2.
- Machine Type: e2-small.
- In Container, click on the button Deploy Container define the fields:
- Container Image as
registry.senhasegura.io/network-connector/agent-v2:latest
. - Restart policy as
Always
.
- Container Image as
- In Environment Variables, define the fields:
SENHASEGURA_FINGERPRINT
: The fingerprint as seen in Segura®.SENHASEGURA_AGENT_PORT
: The port defined in the Segura® interface.SENHASEGURA_ADDRESSES
: IPs of machines running Segura®.SENHASEGURA_AGENT_SECONDARY
: Astrue
orfalse
.
- In
Advanced Configuration
select the optionManagement
. - Under Metadata, click
Add Item
and enter the following combination:- Key:
google-logging-enabled
. - Value:
true
.
- Key:
- Leave the rest of the settings as default.
- Click Create to finish the process.
The agent of Network Connector should automatically connect to Segura® after these steps.
The created instance will be updated automatically, and it will only be necessary to restart it when there is an update to the container image.
:::(Info) (Info) If necessary, configure the network on which the Network Connector will operate, in the section Advanced Options > Networking. :::
Access Logs
To access Network Connector agent logs, follow the steps below:
- In Compute Engine From Google Cloud, navigate to the list of virtual machines and click the instance where the agent is running.
- Access the logs through the path Observability > Logs.
- In All Logs, are the logs of Network Connector format
client: <log message>
. - Use the filter
jsonPayload.message =~ "client: .*"
for easier viewing.
- In All Logs, are the logs of Network Connector format
Watch the video of Network Connector agent installation on Google Cloud.
Do you still have questions? Reach out to the Segura® Community.