Event Persistence Settings

Last updated: 2019-07-19 17:49:23

PDF

Operation Scenario

Kubernetes Events contain information about the operations of Kubernetes clusters and the scheduling of various resources, which can help OPS personnel observe daily changes in resources and locate problems. TKE supports event persistence for all your clusters. After this feature is enabled, your cluster events will be exported to the configured storage in real time. TKE also supports retrieval of event transactions using PaaS services provided by Tencent Cloud or open-source software tools. This document describes how to enable persistent storage of cluster events.

Prerequisites

You are logged in to the TKE console.

Directions

Enable Persistent Storage of Cluster Events

  1. In the left sidebar, click Event Persistence to go to the persistent cluster event storage management page. See the figure below:
    Event persistence
  2. In the row of a cluster whose "status" is "Disabled", click Settings.
  3. On the "Set event persistence" page, set persistent event storage. See the figure below:
    Main setting parameters include:
    • Persistent event storage: Enable persistent event storage.
    • Storage selection:
      • Select "Elasticsearch".
        • Elasticsearch address: Provide the address of the Elasticsearch service.
        • Index: Provide the index of Elasticsearch data.
      • Select "CLS".
        CLS instance: Provide a CLB instance in the same region as the TKE cluster.
  • After persistent event storage is enabled, an event collection container will be automatically deployed in your cluster, which will consume additional resources of approximately 0.2 cores of CPU and 100 MB of memory. Such resources will be released after persistent event storage is disabled.
  • If you select the "Elasticsearch" storage, please make sure that the Elasticsearch service you provide can communicate with the current cluster network; otherwise, events cannot be stored properly. It is recommended to deploy the TKE cluster and the Elasticsearch service in the same VPC or make them have the same internet egress/ingress.

Enable persistent event storage

  1. Click Save to enable persistent storage of cluster events.

Updating or Disabling Persistent Storage of Cluster Events

  1. In the left sidebar, click Event Persistence to go to the persistent cluster event storage management page. See the figure below:
    Event persistence
  2. In the row of a cluster whose "status" is "Enabled", click Update settings.
  3. On the "Set event persistence" page, modify based on actual needs and click Save to update or disable persistent storage of cluster events.