forked from fluent/fluent-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluentbit-operator-inputCustomResourceDefinition.yaml
184 lines (184 loc) · 8.4 KB
/
fluentbit-operator-inputCustomResourceDefinition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.4
creationTimestamp: null
name: inputs.logging.kubesphere.io
spec:
group: logging.kubesphere.io
names:
kind: Input
listKind: InputList
plural: inputs
singular: input
scope: Namespaced
validation:
openAPIV3Schema:
description: Input is the Schema for the inputs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: InputSpec defines the desired state of Input
properties:
dummy:
description: Dummy defines Dummy Input configuration.
properties:
dummy:
description: Dummy JSON record.
type: string
rate:
description: Events number generated per second.
format: int32
type: integer
tag:
description: Tag name associated to all records comming from this
plugin.
type: string
type: object
tail:
description: Tail defines Tail Input configuration.
properties:
bufferChunkSize:
description: Set the initial buffer size to read files data. This
value is used too to increase buffer size. The value must be according
to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
bufferMaxSize:
description: 'Set the limit of the buffer size per monitored file.
When a buffer needs to be increased (e.g: very long lines), this
value is used to restrict how much the memory buffer can grow.
If reading a file exceed this limit, the file is removed from
the monitored file list The value must be according to the Unit
Size specification.'
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
db:
description: Specify the database file to keep track of monitored
files and offsets.
type: string
dbSync:
description: 'Set a default synchronization (I/O) method. Values:
Extra, Full, Normal, Off.'
enum:
- Extra
- Full
- Normal
- "Off"
type: string
dockerMode:
description: If enabled, the plugin will recombine split Docker
log lines before passing them to any parser as configured above.
This mode cannot be used at the same time as Multiline.
type: boolean
dockerModeFlushSeconds:
description: Wait period time in seconds to flush queued unfinished
split lines.
format: int64
type: integer
excludePath:
description: 'Set one or multiple shell patterns separated by commas
to exclude files matching a certain criteria, e.g: exclude_path=*.gz,*.zip'
type: string
ignoredOlder:
description: Ignores records which are older than this time in seconds.
Supports m,h,d (minutes, hours, days) syntax. Default behavior
is to read all records from specified files. Only available when
a Parser is specificied and it can parse the time of a record.
pattern: ^\d+(m|h|d)?$
type: string
key:
description: When a message is unstructured (no parser applied),
it's appended as a string under the key name log. This option
allows to define an alternative name for that key.
type: string
memBufLimit:
description: Set a limit of memory that Tail plugin can use when
appending data to the Engine. If the limit is reach, it will be
paused; when the data is flushed it resumes.
type: string
multiline:
description: If enabled, the plugin will try to discover multiline
messages and use the proper parsers to compose the outgoing messages.
Note that when this option is enabled the Parser option is not
used.
type: boolean
multilineFlushSeconds:
description: Wait period time in seconds to process queued multiline
messages
format: int64
type: integer
parser:
description: Specify the name of a parser to interpret the entry
as a structured message.
type: string
parserFirstline:
description: Name of the parser that matchs the beginning of a multiline
message. Note that the regular expression defined in the parser
must include a group name (named capture)
type: string
parserN:
description: Optional-extra parser to interpret and structure multiline
entries. This option can be used to define multiple parsers.
items:
type: string
type: array
path:
description: Pattern specifying a specific log files or multiple
ones through the use of common wildcards.
type: string
pathKey:
description: If enabled, it appends the name of the monitored file
as part of the record. The value assigned becomes the key in the
map.
type: string
refreshIntervalSeconds:
description: The interval of refreshing the list of watched files
in seconds.
format: int64
type: integer
rotateWaitSeconds:
description: Specify the number of extra time in seconds to monitor
a file once is rotated in case some pending data is flushed.
format: int64
type: integer
skipLongLines:
description: When a monitored file reach it buffer capacity due
to a very long line (Buffer_Max_Size), the default behavior is
to stop monitoring that file. Skip_Long_Lines alter that behavior
and instruct Fluent Bit to skip long lines and continue processing
other lines that fits into the buffer size.
type: boolean
tag:
description: Set a tag (with regex-extract fields) that will be
placed on lines read. E.g. kube.<namespace_name>.<pod_name>.<container_name>
type: string
tagRegex:
description: Set a regex to exctract fields from the file
type: string
type: object
type: object
type: object
version: v1alpha2
versions:
- name: v1alpha2
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []