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

fluentbit: Add support for Kube_Meta_Cache_TTL parameter #1144

Merged
merged 4 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,8 @@ spec:
type: string
Kube_CA_Path:
type: string
Kube_Meta_Cache_TTL:
type: string
Kube_Tag_Prefix:
type: string
Kube_Token_File:
Expand Down Expand Up @@ -9023,6 +9025,8 @@ spec:
type: string
Kube_CA_Path:
type: string
Kube_Meta_Cache_TTL:
type: string
Kube_Tag_Prefix:
type: string
Kube_Token_File:
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/logging.banzaicloud.io_loggings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,8 @@ spec:
type: string
Kube_CA_Path:
type: string
Kube_Meta_Cache_TTL:
type: string
Kube_Tag_Prefix:
type: string
Kube_Token_File:
Expand Down Expand Up @@ -9023,6 +9025,8 @@ spec:
type: string
Kube_CA_Path:
type: string
Kube_Meta_Cache_TTL:
type: string
Kube_Tag_Prefix:
type: string
Kube_Token_File:
Expand Down
2 changes: 2 additions & 0 deletions pkg/sdk/logging/api/v1beta1/fluentbit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ type FilterKubernetes struct {
UseKubelet string `json:"Use_Kubelet,omitempty"`
// kubelet port using for HTTP request, this only works when Use_Kubelet set to On (default:10250)
KubeletPort string `json:"Kubelet_Port,omitempty"`
// Configurable TTL for K8s cached metadata. By default, it is set to 0 which means TTL for cache entries is disabled and cache entries are evicted at random when capacity is reached. In order to enable this option, you should set the number to a time interval. For example, set this value to 60 or 60s and cache entries which have been created more than 60s will be evicted. (default:0)
KubeMetaCacheTTL string `json:"Kube_Meta_Cache_TTL,omitempty"`
}

// FilterAws The AWS Filter Enriches logs with AWS Metadata.
Expand Down
4 changes: 2 additions & 2 deletions pkg/sdk/static/gen/crds/generated.go

Large diffs are not rendered by default.