Kubernetes Object Name | Type | Resource Amount | Namespace |
tke-log-agent | Daemonset | 0.21C126M | kube-system |
cls-provisioner | Deployment | 0.1C64M | kube-system |
logconfigs.cls.cloud.tencent.com | CustomResourceDefinition | - | - |
cls-provisioner | ClusterRole | - | - |
cls-provisioner | ClusterRoleBinding | - | - |
cls-provisioner | ServiceAccount | - | kube-system |
tke-log-agent | ClusterRole | - | - |
tke-log-agent | ClusterRoleBinding | - | - |
tke-log-agent | ServiceAccount | - | kube-system |
Feature | Involved Object | Involved Operation Permission |
Monitoring changes in the log collection rules | logconfig/logconfigpro | watch/patch/get |
Obtaining runtime types of the nodes | node | list/watch/get |
When collecting logs within the standard output logs/containers, it is required to collect logs from specific namespace pods. | namespace/pod | list/watch/get |
When collecting logs within the containers, it is required to obtain the actual storage path of the container logs. | PV/PVC | list/watch/get |
| SC | get |
Collecting relevant logs related to workloads | Workloads | list/watch/get |
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: tke-log-agentrules:- apiGroups: ["cls.cloud.tencent.com"]resources: ["logconfigs","logconfigpros"]verbs: ["list", "watch", "patch","get"]- apiGroups: [""]resources: ["pods", "namespaces", "nodes", "persistentvolumeclaims","configmaps","persistentvolumes"]verbs: ["list", "watch", "get"]- apiGroups: ["apps"]resources: ["daemonsets","replicasets","deployments","statefulsets"]verbs: ["list", "watch", "get"]- apiGroups: ["batch"]resources: ["jobs","cronjobs"]verbs: ["list", "watch", "get"]- apiGroups: ["storage.k8s.io"]resources: ["storageclasses"]verbs: ["get"]
Feature | Involved Object | Involved Operation Permission |
Synchronizing the rule content of log config to the CLS side | logconfig | list/watch/patch/update |
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: cls-provisionerrules:- apiGroups:- cls.cloud.tencent.comresources:- logconfigsverbs:- list- watch- patch- update- apiGroups:- '*'resources:- events- configmapsverbs:- create- patch- update
Was this page helpful?