Installation
The platform's logging system consists of three plugins:Alauda Container Platform Log Essentails , Alauda Container Platform Log Collector and Alauda Container Platform Log Storage. This chapter will introduce you to the installation of these plugins.
-
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. -
The Alauda Container Platform Log Storage with Clickhouse plugin needs Clickhouse operator, before installing the plugin, please ensure that the Clickhouse operator is uploaded in the cluster.
TOC
Installation PlanningHost Paths on Alauda OS NodesInstall Alauda Container Platform Log Essentials via consoleInstall Alauda Container Platform Log Essentials via YAML1. Check available versions2. Create a ModuleInfo3. Verify installationInstall Alauda Container Platform Log Storage with ElasticSearch via consoleInstall Alauda Container Platform Log Storage with ElasticSearch via YAML1. Check available versions2. Create a ModuleInfo3. Verify installationInstall Alauda Container Platform Log Storage with Clickhouse via consoleInstall Alauda Container Platform Log Storage with Clickhouse via YAML1. Check available versions2. Create a ModuleInfo3. Verify installationInstall Alauda Container Platform Log Collector PluginInstall Alauda Container Platform Log Collector Plugin via YAML1. Check available versions2. Create a ModuleInfo3. Verify installationInstallation Planning
Some components of the Logging are resource-intensive. We recommend running them on infra nodes and setting nodeSelector and tolerations to ensure they run only on those nodes. 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.
-
Separate log storage by scope. Deploy log storage in the
globalcluster for theglobalcluster's own logs, so that theglobalcluster collects, stores, and queries its own logs independently. Centralize application logs from workload clusters into a dedicated log storage workload cluster rather than into theglobalcluster, so that aglobalcluster failure does not disrupt log-based issue resolution for applications, and application log load does not affect the management cluster. -
If the
globalcluster is deployed with disaster recovery, do not send workload cluster logs to either the primary or the standbyglobalcluster. Disaster recovery synchronizes only theglobalcluster's etcd data and excludes namespaces such ascpaas-system, so log data is not replicated to the standby cluster. Eachglobalcluster stores and queries only its own logs and never uses the other cluster's log storage; otherwise application logs become unavailable after a failover. For the synchronization scope, see Global Cluster Disaster Recovery. -
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 co-deployment 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.
Host Paths on Alauda OS Nodes
The default host paths in this chapter use the /cpaas prefix, which is the layout of the traditional operating system. Alauda OS nodes are immutable: only /var/cpaas is writable, so a path under /cpaas is not valid on those nodes.
When you install a log storage plugin on Alauda OS nodes, replace the /cpaas prefix with /var/cpaas in the host path field. The host path is set in the plugin ModuleInfo; the console install form does not expose it.
Back the selected path with a persistent disk that survives node re-provisioning, and size that disk for the retention period you plan to use. Set the path before you install, because the host path cannot be changed afterwards.
Install Alauda Container Platform Log Essentials via console
-
Navigate to App Store Management > Cluster Plugin and select the
globalcluster. -
In the Plugins tab, click the action button to the right of Alauda Container Platform Log Essentials > Install.
-
Click Install.
Install Alauda Container Platform Log Essentials via YAML
1. 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.
2. Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference:
3. 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 with ElasticSearch via console
-
Navigate to App Store Management > Cluster Plugin and select the target cluster.
-
In the Plugins tab, click the action button to the right of Alauda Container Platform Log Storage with ElasticSearch > Install.
-
Refer to the following instructions to configure relevant parameters.
-
Click Install.
Install Alauda Container Platform Log Storage with ElasticSearch via YAML
1. 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.
2. Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference:
3. 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 with Clickhouse via console
-
Navigate to App Store Management > Cluster Plugin and select the target cluster.
-
In the Plugins tab, click the action button to the right of Alauda Container Platform Log Storage with Clickhouse > Install.
-
Refer to the following instructions to configure relevant parameters.
-
Click Install.
Install Alauda Container Platform Log Storage with Clickhouse via YAML
1. 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.
2. Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (ClickHouse):
3. 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 Collector Plugin
-
Navigate to App Store Management > Cluster Plugin and select the target cluster.
-
In the Plugins tab, click the action button to the right of Alauda Container Platform Log Collector > Install.
-
Select the Storage Cluster (where Alauda Container Platform Log Storage has been installed) and click Select/Deselect log types to set the scope of log collection in the cluster.
-
Click Install.
Install Alauda Container Platform Log Collector Plugin via YAML
1. 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.
2. Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (Log Collector):
3. Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version: