Central HostPath Mapper
| Enterprise | ||||
|---|---|---|---|---|
| Available in these plans | Free | Dev | Prod | Scale |
| Central HostPath Mapper | ||||
You can install a common logging solution such as Fluentd or the ELK stack on the Control Plane Cluster and use it within the tenant cluster. However, in some scenarios, installing these tools directly on the tenant cluster is preferred.
These logging solutions access pod and container logs by mounting node host paths and using specific filename formats to associate logs with the correct pods. This approach doesnβt work in a vCluster because the vCluster rewrites pod names to a vCluster-specific format when syncing them to the Control Plane Cluster.
The HostPath Mapper collects logs from tenant clusters. It works by matching virtual pod and container names to their physical names on the host and does this through symbolic links.
To enable HostPath Mapper for a tenant cluster, install a DaemonSet in the same namespace. This setup works well for small environments with few nodes and tenant clusters.
As the number of nodes and tenant clusters grows, the number of required DaemonSet pods also grows. Each tenant cluster needs one DaemonSet per node, which increases resource usage.
The Central HostPath Mapper solves this problem. It installs a single DaemonSet on the Control Plane Cluster. This DaemonSet manages host path remapping for all tenant clusters on the platform. It reduces overhead and simplifies cluster management.
To use this feature, install the Central HostPath Mapper on the Control Plane Cluster. The component is available as a default vCluster Platform App in the Apps section. Install it before enabling the feature to ensure full capabilities are available.
This feature is only configurable from the UI for tenant clusters created without a template. When using a custom template that has the feature enabled, the UI does not display the configuration in Advanced Options as described below. In this case, configure the feature using the CLI or by modifying the manifests.
- During tenant cluster creation
- On an existing tenant cluster
From the project drop-down menu, select the project you'd like to create the tenant cluster in.
Click the button above the list of tenant clusters
[Optional] select the cluster in which to create the tenant cluster.
Leave the Select a template section blank and click the to continue.
Click the Advanced Options configuration tab and expand the 'Host Path Mapper' section.
Toggle the slider Enable. This will add the 'loft.sh/hpm-enabled' annotation to the template metadata which will be automatically synced to the tenant cluster on creation. Secondly, it will add
enabled: true¢ral: trueunder the 'controlPlane.hostPathMapper' field in the vcluster.yaml.Finish configuring anything else on your tenant cluster, then click .
Select the project that contains the tenant cluster you want to enable Central HostPath Mapper on from the project drop-down menu.
Hover over the tenant cluster you would like to enable Central HostPath Mapper on to see an Edit button displayed. Click Edit.
Click the Advanced Options configuration tab and expand the Host Path Mapper section.
Toggle the slider Enable. This will add the 'loft.sh/hpm-enabled' annotation to the template metadata which will be automatically synced to the tenant cluster on creation. Secondly, it will add
enabled: true¢ral: trueunder the 'controlPlane.hostPathMapper' field in the vcluster.yaml.Finish configuring anything else on your tenant cluster, then click .