Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] [bcs-logbeat-sidecar] 支持静态Pod日志采集 #890

Open
AlexAi27 opened this issue May 18, 2021 · 0 comments
Open

[feature] [bcs-logbeat-sidecar] 支持静态Pod日志采集 #890

AlexAi27 opened this issue May 18, 2021 · 0 comments
Assignees
Labels
confirmed issue is confirmed feature new feature inner issue comes from Tencent side
Milestone

Comments

@AlexAi27
Copy link
Collaborator

feature相关背景与描述
支持静态Pod日志采集

解决方案描述

  • spec 新增字段 podNamePattern
apiVersion: bkbcs.tencent.com/v1
kind: BcsLogConfig
metadata:
  name: test-log-conf
  namespace: default
spec:
  appId: ""
  clusterId: bcs-k8s-00000
  configType: custom
  workloadNamespace: kube-system
  # podNamePattern 正则匹配podname,可作用于静态pod或workload附属pod
  podNamePattern: kube-controller-manager-((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))
  nonStdDataId: "12345"
  packageCollection: true
  podLabels: false
  stdDataId: "12346"
  stdout: true
  • 不再通过ownerReference的长度过滤pod

对现存日志配置的冲击

  • 若未配置workloadName或workloadType,则会添加符合匹配规则的static pod的日志配置,已有日志配置无变化
  • 若配置了workloadName或workloadType,则与原逻辑无差异
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed issue is confirmed feature new feature inner issue comes from Tencent side
Projects
None yet
Development

No branches or pull requests

2 participants