tencent cloud

Service Registry and Governance

Configure Agent Installation

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-05-07 18:07:07

Feature Overview

Polaris-created configuration files can be pushed to local paths, creating corresponding file contents.
After subscribing to the file configuration of the corresponding server, polaris-config-agent automatically detects whether there are changes on the server side and synchronously updates local files upon any modifications.

Operation Steps

CVM Scenario

Step 1: Download agent

Step 2: Unzip

Unpack the downloaded agent.tar.gz package: tar -zxvf polaris-config-agent.tar.gz The directory generated after the package is unpacked is as follows:
--
|-bin
|-config

Step 3: Start

Go to the bin directory and execute the startup script: sh start.sh
Specific parameters can be injected in two ways:
1. Specify startup parameters after start.sh.
-discover-addresses=${polaris_discover_addresses} -config-addresses=${polaris_config_addresses} -config-groups=${polaris_config_groups} -config-files=${polaris_config_files} -config-token=${polaris_config_token}
2. The agent automatically reads the polaris-config-agent.yaml configuration file in the config directory upon startup. You can cp polaris-config-agent.example.yaml in the config directory and then edit the specific configuration content in the polaris-config-agent.yaml file.
Note:
When both startup parameters and the configuration file contain settings, the priority is: startup parameters > configuration file.

Container Environment

Step 1: Obtain the Image Repository Address

agent image repository address: ccr.ccs.tencentyun.com/tsf_100011913960/polaris-agent

Step 2: Configure the sidecar Container

Start polaris-config-agent as a sidecar. agent parameters can be injected via environment variables or configmap. Specific parameters are described below:
Parameter Introduction
Parameter
Description
Environment Variable Injection Supported or Not
Parameter Example
Environment Variable Injection Example
Required
discover-addresses
Polaris service discovery address
${polaris_discover_addresses}
-discover-addresses=127.0.0.1:8091,127.0.0.2:8093
-discover-addresses=${polaris_discover_addresses}
Optional. If not specified, discover-address=config_ip:8091.
config-addresses
Configuration center access address
${polaris_config_addresses}
-config-addresses=127.0.0.1:8093,127.0.0.2:8093
-config-addresses=${polaris_config_addresses}
Required
config-token
Configuration center access token
${polaris_config_token}
-config-token=aaaa
-config-token=${polaris_config_token}
Optional
config-groups
Configuration groups to be obtained
${polaris_config_groups}
-config-groups=ns1#group1,ns2#group2
-config-groups=${polaris_config_groups}
At least one of config-groups and config-files must be specified.
config-files
Configuration files to be obtained
${polaris_config_files}
-config-files=ns1#group1#file1,ns2#group2#file2
-config-files=${polaris_config_files}
At least one of config-groups and config-files must be specified.


Ajuda e Suporte

Esta página foi útil?

comentários