You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: PodLogs defines how to collect logs for a Pod.
23
25
properties:
24
26
apiVersion:
27
+
description: 'APIVersion defines the versioned schema of this representation
28
+
of an object. Servers should convert recognized schemas to the latest
29
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
25
30
type: string
26
31
kind:
32
+
description: 'Kind is a string value representing the REST resource this
33
+
object represents. Servers may infer this from the endpoint the client
34
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
27
35
type: string
28
36
metadata:
29
37
type: object
30
38
spec:
39
+
description: PodLogsSpec defines how to collect logs for a Pod.
31
40
properties:
32
-
jobLabel:
33
-
type: string
34
41
namespaceSelector:
42
+
description: Selector to select which namespaces the Pod objects are
43
+
discovered from.
35
44
properties:
36
-
any:
37
-
type: boolean
38
-
matchNames:
45
+
matchExpressions:
46
+
description: matchExpressions is a list of label selector requirements.
47
+
The requirements are ANDed.
39
48
items:
40
-
type: string
41
-
type: array
42
-
type: object
43
-
pipelineStages:
44
-
items:
45
-
properties:
46
-
cri:
47
-
type: object
48
-
docker:
49
-
type: object
50
-
drop:
51
-
properties:
52
-
dropCounterReason:
53
-
type: string
54
-
expression:
55
-
type: string
56
-
longerThan:
57
-
type: string
58
-
olderThan:
59
-
type: string
60
-
source:
61
-
type: string
62
-
value:
63
-
type: string
64
-
type: object
65
-
json:
66
-
properties:
67
-
expressions:
68
-
additionalProperties:
69
-
type: string
70
-
type: object
71
-
source:
72
-
type: string
73
-
type: object
74
-
labelAllow:
75
-
items:
76
-
type: string
77
-
type: array
78
-
labelDrop:
79
-
items:
80
-
type: string
81
-
type: array
82
-
labels:
83
-
additionalProperties:
84
-
type: string
85
-
type: object
86
-
limit:
87
-
properties:
88
-
burst:
89
-
type: integer
90
-
drop:
91
-
type: boolean
92
-
rate:
93
-
type: integer
94
-
type: object
95
-
match:
96
-
properties:
97
-
action:
98
-
type: string
99
-
dropCounterReason:
100
-
type: string
101
-
pipelineName:
102
-
type: string
103
-
selector:
104
-
type: string
105
-
stages:
106
-
type: string
107
-
required:
108
-
- selector
109
-
type: object
110
-
metrics:
111
-
additionalProperties:
112
-
properties:
113
-
action:
114
-
type: string
115
-
buckets:
116
-
items:
117
-
type: string
118
-
type: array
119
-
countEntryBytes:
120
-
type: boolean
121
-
description:
122
-
type: string
123
-
matchAll:
124
-
type: boolean
125
-
maxIdleDuration:
126
-
type: string
127
-
prefix:
128
-
type: string
129
-
source:
130
-
type: string
131
-
type:
132
-
type: string
133
-
value:
134
-
type: string
135
-
required:
136
-
- action
137
-
- type
138
-
type: object
139
-
type: object
140
-
multiline:
141
-
properties:
142
-
firstLine:
143
-
type: string
144
-
maxLines:
145
-
type: integer
146
-
maxWaitTime:
147
-
type: string
148
-
required:
149
-
- firstLine
150
-
type: object
151
-
output:
49
+
description: A label selector requirement is a selector that
50
+
contains values, a key, and an operator that relates the key
51
+
and values.
152
52
properties:
153
-
source:
154
-
type: string
155
-
required:
156
-
- source
157
-
type: object
158
-
pack:
159
-
properties:
160
-
ingestTimestamp:
161
-
type: boolean
162
-
labels:
163
-
items:
164
-
type: string
165
-
type: array
166
-
required:
167
-
- labels
168
-
type: object
169
-
regex:
170
-
properties:
171
-
expression:
172
-
type: string
173
-
source:
174
-
type: string
175
-
required:
176
-
- expression
177
-
type: object
178
-
replace:
179
-
properties:
180
-
expression:
181
-
type: string
182
-
replace:
183
-
type: string
184
-
source:
185
-
type: string
186
-
required:
187
-
- expression
188
-
type: object
189
-
template:
190
-
properties:
191
-
source:
192
-
type: string
193
-
template:
194
-
type: string
195
-
required:
196
-
- source
197
-
- template
198
-
type: object
199
-
tenant:
200
-
properties:
201
-
label:
202
-
type: string
203
-
source:
204
-
type: string
205
-
value:
53
+
key:
54
+
description: key is the label key that the selector applies
55
+
to.
206
56
type: string
207
-
type: object
208
-
timestamp:
209
-
properties:
210
-
actionOnFailure:
57
+
operator:
58
+
description: operator represents a key's relationship to
59
+
a set of values. Valid operators are In, NotIn, Exists
60
+
and DoesNotExist.
211
61
type: string
212
-
fallbackFormats:
62
+
values:
63
+
description: values is an array of string values. If the
64
+
operator is In or NotIn, the values array must be non-empty.
65
+
If the operator is Exists or DoesNotExist, the values
66
+
array must be empty. This array is replaced during a strategic
67
+
merge patch.
213
68
items:
214
69
type: string
215
70
type: array
216
-
format:
217
-
type: string
218
-
location:
219
-
type: string
220
-
source:
221
-
type: string
222
71
required:
223
-
- format
224
-
- source
72
+
- key
73
+
- operator
225
74
type: object
226
-
type: object
227
-
type: array
228
-
podTargetLabels:
229
-
items:
230
-
type: string
231
-
type: array
75
+
type: array
76
+
matchLabels:
77
+
additionalProperties:
78
+
type: string
79
+
description: matchLabels is a map of {key,value} pairs. A single
80
+
{key,value} in the matchLabels map is equivalent to an element
81
+
of matchExpressions, whose key field is "key", the operator
82
+
is "In", and the values array contains only "value". The requirements
83
+
are ANDed.
84
+
type: object
85
+
type: object
86
+
x-kubernetes-map-type: atomic
232
87
relabelings:
88
+
description: RelabelConfigs to apply to logs before delivering.
233
89
items:
90
+
description: 'RelabelConfig allows dynamic rewriting of the label
91
+
set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section
92
+
of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs'
234
93
properties:
235
94
action:
236
95
default: replace
96
+
description: Action to perform based on regex matching. Default
97
+
is 'replace'. uppercase and lowercase actions require Prometheus
98
+
>= 2.36.
237
99
enum:
238
100
- replace
239
101
- Replace
@@ -253,39 +115,69 @@ spec:
253
115
- Lowercase
254
116
- uppercase
255
117
- Uppercase
256
-
- keepequal
257
-
- KeepEqual
258
-
- dropequal
259
-
- DropEqual
260
118
type: string
261
119
modulus:
120
+
description: Modulus to take of the hash of the source label
121
+
values.
262
122
format: int64
263
123
type: integer
264
124
regex:
125
+
description: Regular expression against which the extracted
126
+
value is matched. Default is '(.*)'
265
127
type: string
266
128
replacement:
129
+
description: Replacement value against which a regex replace
130
+
is performed if the regular expression matches. Regex capture
131
+
groups are available. Default is '$1'
267
132
type: string
268
133
separator:
134
+
description: Separator placed between concatenated source label
135
+
values. default is ';'.
269
136
type: string
270
137
sourceLabels:
138
+
description: The source labels select values from existing labels.
139
+
Their content is concatenated using the configured separator
140
+
and matched against the configured regular expression for
141
+
the replace, keep, and drop actions.
271
142
items:
143
+
description: LabelName is a valid Prometheus label name which
144
+
may only contain ASCII letters, numbers, as well as underscores.
272
145
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
273
146
type: string
274
147
type: array
275
148
targetLabel:
149
+
description: Label to which the resulting value is written in
150
+
a replace action. It is mandatory for replace actions. Regex
151
+
capture groups are available.
276
152
type: string
277
153
type: object
278
154
type: array
279
155
selector:
156
+
description: Selector to select Pod objects. Required.
280
157
properties:
281
158
matchExpressions:
159
+
description: matchExpressions is a list of label selector requirements.
160
+
The requirements are ANDed.
282
161
items:
162
+
description: A label selector requirement is a selector that
163
+
contains values, a key, and an operator that relates the key
164
+
and values.
283
165
properties:
284
166
key:
167
+
description: key is the label key that the selector applies
168
+
to.
285
169
type: string
286
170
operator:
171
+
description: operator represents a key's relationship to
172
+
a set of values. Valid operators are In, NotIn, Exists
173
+
and DoesNotExist.
287
174
type: string
288
175
values:
176
+
description: values is an array of string values. If the
177
+
operator is In or NotIn, the values array must be non-empty.
178
+
If the operator is Exists or DoesNotExist, the values
179
+
array must be empty. This array is replaced during a strategic
180
+
merge patch.
289
181
items:
290
182
type: string
291
183
type: array
@@ -297,6 +189,11 @@ spec:
297
189
matchLabels:
298
190
additionalProperties:
299
191
type: string
192
+
description: matchLabels is a map of {key,value} pairs. A single
193
+
{key,value} in the matchLabels map is equivalent to an element
194
+
of matchExpressions, whose key field is "key", the operator
195
+
is "In", and the values array contains only "value". The requirements
0 commit comments