Installation
This chapter introduces how to install the following logging plugins: Alauda Container Platform Log Essentials, Alauda Container Platform Log Collector, Alauda Container Platform Log Storage for ClickHouse, and Alauda Container Platform Log Storage for Elasticsearch.
-
The
globalcluster can query the log data stored on any workload cluster within the platform. Ensure that theglobalcluster can access port 11780 of the workload cluster. -
Alauda Container Platform Log Storage for ClickHouse depends on ClickHouse Operator. Before installing the plugin, ensure that ClickHouse Operator has been uploaded to the cluster.
TOC
Installation PlanningInstall Alauda Container Platform Log EssentialsConsoleYAMLInstall Alauda Container Platform Log Storage for ElasticsearchConsoleYAMLPlacement on Infra NodesInstall Alauda Container Platform Log Storage for ClickHouseConsoleYAMLPlacement on Infra NodesInstall Alauda Container Platform Log Collector PluginConsoleYAMLInstallation Planning
Some components of the Logging are resource-intensive. We recommend running them on infra nodes through plugin configuration. The exact scheduling fields differ by plugin. If you are evaluating the product and have not provisioned infra nodes, you can remove these settings so the components run on all nodes.
For guidance on planning infra nodes, see Cluster Node Planning.
Alauda Container Platform Log Storage plugins can be installed in any cluster, and any cluster's log storage component can be selected for log collection to interface with the storage data.
So , before installing the log storage plugin , you need to plan the cluster and node where the log storage component will be installed.
-
Avoid deploying log storage plugins in the global cluster. Instead, deploy them in workload clusters to ensure management cluster failures do not disrupt log-based issue resolution.
-
Prioritize centralizing logs to a single log storage cluster. If log volume exceeds maximum capacity thresholds, distribute logs across multiple storage clusters.
-
Deploy at least one log storage instance per network zone to aggregate logs locally, minimizing cross-data-center public network traffic (which incurs high costs and latency).
-
Dedicate exclusive nodes for log storage, avoiding colocating log storage with other applications or platform components. Log storage requires high I/O throughput and may be affected by interference.
-
Mount dedicated SSD disks for log storage to significantly enhance performance.
Install Alauda Container Platform Log Essentials
Console
-
Navigate to Marketplace > Cluster Plugins and select the
globalcluster. -
Click the action button to the right of Alauda Container Platform Log Essentials and select Install.
-
Click Install.
YAML
- Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the globalcluster:
This indicates that the ModulePlugin log-api exists in the cluster and version v4.2.0 is published.
- Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference:
- Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:
Field explanations:
NAME: ModuleInfo resource nameCLUSTER: Cluster where the plugin is installedMODULE: Plugin nameDISPLAY_NAME: Display name of the pluginSTATUS: Installation status;Runningmeans successfully installed and runningTARGET_VERSION: Intended installation versionCURRENT_VERSION: Version before installationNEW_VERSION: Latest available version for installation
Install Alauda Container Platform Log Storage for Elasticsearch
Console
-
Navigate to Marketplace > Cluster Plugins and select the target cluster.
-
Click the action button to the right of Alauda Container Platform Log Storage for Elasticsearch and select Install.
-
Refer to the following instructions to configure relevant parameters.
-
Click Install.
YAML
- Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the globalcluster:
This indicates that the ModulePlugin logcenter exists in the cluster and version v4.1.0 is published.
- Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference:
- Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:
Field explanations:
NAME: ModuleInfo resource nameCLUSTER: Cluster where the plugin is installedMODULE: Plugin nameDISPLAY_NAME: Display name of the pluginSTATUS: Installation status;Runningmeans successfully installed and runningTARGET_VERSION: Intended installation versionCURRENT_VERSION: Version before installationNEW_VERSION: Latest available version for installation
Placement on Infra Nodes
If you want the Elasticsearch storage plugin workloads to run on dedicated infra nodes, use the plugin YAML configuration instead of patching the generated workloads after installation.
Configure the following fields in spec.valuesOverride.ait/chart-alauda-log-center.global:
Before applying these scheduling rules, make sure your infra node planning and local storage placement are compatible. For the node planning considerations, see Planning Infra Nodes for Logging Storage.
Install Alauda Container Platform Log Storage for ClickHouse
Console
If you plan to use S3 for ClickHouse log data storage or cold data storage, prepare the required S3 Secret before installation. For the complete procedure, including the Secret format, HTTPS CA certificate Secret, and usage modes, see How to Use S3 Storage with ClickHouse.
-
Navigate to Marketplace > Cluster Plugins and select the target cluster.
-
Click the action button to the right of Alauda Container Platform Log Storage for ClickHouse and select Install.
-
Refer to the following instructions to configure relevant parameters.
-
Click Install.
YAML
- Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the globalcluster:
This indicates that the ModulePlugin logclickhouse exists in the cluster and version v4.1.0 is published.
- Create a ModuleInfo
Create a ModuleInfo resource to install the plugin. The following example uses Separation of storage and compute together with S3-backed cold storage:
YAML field reference (ClickHouse):
Upgrade notes:
- Upgrading the ClickHouse storage plugin does not allow you to switch the Storage Policy type or toggle Cold and Hot Separate on or off.
- After installation, only the effective retention settings, such as hot or cold retention days, should be adjusted.
- To use this capability, upgrade Alauda Container Platform Log Essentials and Alauda Container Platform Log Storage for ClickHouse to compatible versions together.
- In disaster recovery scenarios, use different S3 buckets for the primary and standby ClickHouse deployments.
- Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:
Field explanations:
NAME: ModuleInfo resource nameCLUSTER: Cluster where the plugin is installedMODULE: Plugin nameDISPLAY_NAME: Display name of the pluginSTATUS: Installation status;Runningmeans successfully installed and runningTARGET_VERSION: Intended installation versionCURRENT_VERSION: Version before installationNEW_VERSION: Latest available version for installation
Placement on Infra Nodes
If you want the ClickHouse storage plugin workloads to run on dedicated infra nodes, configure plugin-level scheduling rules during installation or upgrade.
- In the console, use Advanced Configuration to set Node Selectors and Node Tolerations.
- In YAML, set
spec.config.components.nodeSelectorandspec.config.components.tolerations.
Example:
Before applying these scheduling rules, make sure your infra node planning and local storage placement are compatible. For the node planning considerations, see Planning Infra Nodes for Logging Storage.
Install Alauda Container Platform Log Collector Plugin
Console
-
Navigate to Marketplace > Cluster Plugins and select the target cluster.
-
Click the action button to the right of Alauda Container Platform Log Collector and select Install.
-
Refer to the following instructions to configure relevant parameters.
-
Click Install.
YAML
- Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the globalcluster:
This indicates that the ModulePlugin logagent exists in the cluster and version v4.1.0 is published.
- Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (Log Collector):
- Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version: