- Documentation
Volcengine Kubernetes Engine
Volcengine Container Instance
User guide
Logs
Collecting VCI container logs via TLS
Logs
Collecting VCI container logs via TLS
Collecting VCI container logs via TLS
VCI supports collecting container logs via Volcano Engine TLS. This topic describes how to collect the standard output logs and file-based logs of VCI containers to TLS.
Prerequisites
- A log project and log topic have been created in TLS. For detailed operations, see Log projects and Log topics.
- The log-collector add-on has been installed in the VKE cluster, or a host group with the identifier k8s-vke-${cluster_id} has been created.
Enabling log collection for VCI
VCI supports two log collection methods:
- Add a Kubernetes pod annotation to enable log collection. You need to redeploy existing VCIs after adding the pod annotation to them.
- Enable log collection when creating a workload in the console.
Using Kubernetes configuration
When creating pods or workloads (including Deployments, StatefulSets, Jobs, and CronJobs), enable log collection by adding the specified pod annotation.
The annotation description is as follows.
The following sample code shows how to create a Deployment.
Using the console
- When creating a workload, in the Basic information step, select Volcengine Container Instance for Computing power type and switch on Log collection to collect VCI logs into TLS.
Viewing logs
Last updated: 2026.08.19 17:57:45