forked from kube-logging/logging-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.banzaicloud.io_loggings.yaml
1976 lines (1975 loc) · 112 KB
/
logging.banzaicloud.io_loggings.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: loggings.logging.banzaicloud.io
spec:
group: logging.banzaicloud.io
names:
kind: Logging
listKind: LoggingList
plural: loggings
singular: logging
scope: Cluster
subresources:
status: {}
validation:
openAPIV3Schema:
description: Logging is the Schema for the loggings 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/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/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: LoggingSpec defines the desired state of Logging
properties:
controlNamespace:
type: string
enableRecreateWorkloadOnImmutableFieldChange:
description: EnableRecreateWorkloadOnImmutableFieldChange enables the
operator to recreate the fluentbit daemonset and the fluentd statefulset
(and possibly other resource in the future) in case there is a change
in an immutable field that otherwise couldn't be managed with a simple
update.
type: boolean
flowConfigCheckDisabled:
type: boolean
flowConfigOverride:
type: string
fluentbit:
description: FluentbitSpec defines the desired state of Fluentbit
properties:
annotations:
additionalProperties:
type: string
type: object
bufferStorage:
description: BufferStorage is the Service Section Configuration
of fluent-bit
properties:
storage.backlog.mem_limit:
description: If storage.path is set, Fluent Bit will look for
data chunks that were not delivered and are still in the storage
layer, these are called backlog data. This option configure
a hint of maximum value of memory to use when processing these
records. (default:5M)
type: string
storage.checksum:
description: Enable the data integrity check when writing and
reading data from the filesystem. The storage layer uses the
CRC32 algorithm. (default:Off)
type: string
storage.path:
description: Set an optional location in the file system to
store streams and chunks of data. If this parameter is not
set, Input plugins can only use in-memory buffering.
type: string
storage.sync:
description: Configure the synchronization mode used to store
the data into the file system. It can take the values normal
or full. (default:normal)
type: string
type: object
bufferStorageVolume:
properties:
emptyDir:
description: Represents an empty directory for a pod. Empty
directory volumes support ownership management and SELinux
relabeling.
properties:
medium:
description: 'What type of storage medium should back this
directory. The default is "" which means to use the node''s
default medium. Must be an empty string (default) or Memory.
More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
type: string
sizeLimit:
description: 'Total amount of local storage required for
this EmptyDir volume. The size limit is also applicable
for memory medium. The maximum usage on memory medium
EmptyDir would be the minimum value between the SizeLimit
specified here and the sum of memory limits of all containers
in a pod. The default is nil which means that the limit
is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir'
type: string
type: object
host_path:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
hostPath:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
pvc:
description: PersistentVolumeClaim defines the Spec and the
Source at the same time. The PVC will be created with the
configured spec and the name defined in the source.
properties:
source:
description: PersistentVolumeClaimVolumeSource references
the user's PVC in the same namespace. This volume finds
the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource
is, essentially, a wrapper around another type of volume
that is owned by someone else (the system).
properties:
claimName:
description: 'ClaimName is the name of a PersistentVolumeClaim
in the same namespace as the pod using this volume.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims'
type: string
readOnly:
description: Will force the ReadOnly setting in VolumeMounts.
Default false.
type: boolean
required:
- claimName
type: object
spec:
description: PersistentVolumeClaimSpec describes the common
attributes of storage devices and allows a Source for
provider-specific attributes
properties:
accessModes:
description: 'AccessModes contains the desired access
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
items:
type: string
type: array
dataSource:
description: This field requires the VolumeSnapshotDataSource
alpha feature gate to be enabled and currently VolumeSnapshot
is the only supported data source. If the provisioner
can support VolumeSnapshot data source, it will create
a new volume and data will be restored to the volume
at the same time. If the provisioner does not support
VolumeSnapshot data source, volume will not be created
and the failure will be reported as an event. In the
future, we plan to support more data source types
and the behavior of the provisioner may change.
properties:
apiGroup:
description: APIGroup is the group for the resource
being referenced. If APIGroup is not specified,
the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
type: string
kind:
description: Kind is the type of resource being
referenced
type: string
name:
description: Name is the name of resource being
referenced
type: string
required:
- kind
- name
type: object
resources:
description: 'Resources represents the minimum resources
the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'
properties:
limits:
additionalProperties:
type: string
description: 'Limits describes the maximum amount
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
type: string
description: 'Requests describes the minimum amount
of compute resources required. If Requests is
omitted for a container, it defaults to Limits
if that is explicitly specified, otherwise to
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
selector:
description: A label query over volumes to consider
for binding.
properties:
matchExpressions:
description: matchExpressions is a list of label
selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
properties:
key:
description: key is the label key that the
selector applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string
values. If the operator is In or NotIn,
the values array must be non-empty. If the
operator is Exists or DoesNotExist, the
values array must be empty. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value}
pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions,
whose key field is "key", the operator is "In",
and the values array contains only "value". The
requirements are ANDed.
type: object
type: object
storageClassName:
description: 'Name of the StorageClass required by the
claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
type: string
volumeMode:
description: volumeMode defines what type of volume
is required by the claim. Value of Filesystem is implied
when not included in claim spec. This is a beta feature.
type: string
volumeName:
description: VolumeName is the binding reference to
the PersistentVolume backing this claim.
type: string
type: object
type: object
type: object
customConfigSecret:
type: string
filterKubernetes:
description: FilterKubernetes Fluent Bit Kubernetes Filter allows
to enrich your log files with Kubernetes metadata.
properties:
Annotations:
description: Include Kubernetes resource annotations in the
extra metadata. (default:On)
type: string
Buffer_Size:
description: Set the buffer size for HTTP client when reading
responses from Kubernetes API server. The value must be according
to the Unit Size specification. (default:32k)
type: string
Dummy_Meta:
description: If set, use dummy-meta data (for test/dev purposes)
(default:Off)
type: string
K8S_Logging_Exclude:
description: Allow Kubernetes Pods to exclude their logs from
the log processor (read more about it in Kubernetes Annotations
section). (default:Off)
type: string
K8S_Logging_Parser:
description: Allow Kubernetes Pods to suggest a pre-defined
Parser (read more about it in Kubernetes Annotations section)
(default:Off)
type: string
Keep_Log:
description: When Keep_Log is disabled, the log field is removed
from the incoming message once it has been successfully merged
(Merge_Log must be enabled as well). (default:On)
type: string
Kube_CA_File:
description: "\tCA certificate file (default:/var/run/secrets/kubernetes.io/serviceaccount/ca.crt)"
type: string
Kube_CA_Path:
description: Absolute path to scan for certificate files
type: string
Kube_Tag_Prefix:
description: When the source records comes from Tail input plugin,
this option allows to specify what's the prefix used in Tail
configuration. (default:kube.var.log.containers.)
type: string
Kube_Token_File:
description: Token file (default:/var/run/secrets/kubernetes.io/serviceaccount/token)
type: string
Kube_URL:
description: API Server end-point (default:https://kubernetes.default.svc:443)
type: string
Kube_meta_preload_cache_dir:
description: If set, Kubernetes meta-data can be cached/pre-loaded
from files in JSON format in this directory, named as namespace-pod.meta
type: string
Labels:
description: Include Kubernetes resource labels in the extra
metadata. (default:On)
type: string
Match:
description: Match filtered records (default:kube.*)
type: string
Merge_Log:
description: When enabled, it checks if the log field content
is a JSON string map, if so, it append the map fields as part
of the log structure. (default:Off)
type: string
Merge_Log_Key:
description: When Merge_Log is enabled, the filter tries to
assume the log field from the incoming message is a JSON string
message and make a structured representation of it at the
same level of the log field in the map. Now if Merge_Log_Key
is set (a string name), all the new structured fields taken
from the original log content are inserted under the new key.
type: string
Merge_Log_Trim:
description: When Merge_Log is enabled, trim (remove possible
\n or \r) field values. (default:On)
type: string
Merge_Parser:
description: Optional parser name to specify how to parse the
data contained in the log key. Recommended use is for developers
or testing only.
type: string
Regex_Parser:
description: Set an alternative Parser to process record Tag
and extract pod_name, namespace_name, container_name and docker_id.
The parser must be registered in a parsers file (refer to
parser filter-kube-test as an example).
type: string
Use_Journal:
description: When enabled, the filter reads logs coming in Journald
format. (default:Off)
type: string
tls_debug:
description: Debug level between 0 (nothing) and 4 (every detail).
(default:-1)
type: string
tls_verify:
description: When enabled, turns on certificate validation when
connecting to the Kubernetes API server. (default:On)
type: string
type: object
image:
description: ImageSpec struct hold information about image specification
properties:
pullPolicy:
type: string
repository:
type: string
tag:
type: string
type: object
inputTail:
description: InputTail defines Fluentbit tail input configuration
The tail input plugin allows to monitor one or several text files.
It has a similar behavior like tail -f shell command.
properties:
Buffer_Chunk_Size:
description: Set the buffer size for HTTP client when reading
responses from Kubernetes API server. The value must be according
to the Unit Size specification. (default:32k)
type: string
Buffer_Max_Size:
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. (default:Buffer_Chunk_Size)'
type: string
DB:
description: Specify the database file to keep track of monitored
files and offsets.
type: string
DB_Sync:
description: 'Set a default synchronization (I/O) method. Values:
Extra, Full, Normal, Off. This flag affects how the internal
SQLite engine do synchronization to disk, for more details
about each option please refer to this section. (default:Full)'
type: string
Docker_Mode:
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.
(default:Off)
type: string
Docker_Mode_Flush:
description: Wait period time in seconds to flush queued unfinished
split lines. (default:4)
type: string
Exclude_Path:
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
Ignore_Older:
description: Ignores files that have been last modified before
this time in seconds. Supports m,h,d (minutes, hours,days)
syntax. Default behavior is to read all specified files.
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. (default:log)
type: string
Mem_Buf_Limit:
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. (default:Off)
type: string
Multiline_Flush:
description: Wait period time in seconds to process queued multiline
messages (default:4)
type: string
Parser:
description: Specify the name of a parser to interpret the entry
as a structured message.
type: string
Parser_Firstline:
description: Name of the parser that machs the beginning of
a multiline message. Note that the regular expression defined
in the parser must include a group name (named capture)
type: string
Parser_N:
description: 'Optional-extra parser to interpret and structure
multiline entries. This option can be used to define multiple
parsers, e.g: Parser_1 ab1, Parser_2 ab2, Parser_N abN.'
type: string
Path:
description: Pattern specifying a specific log files or multiple
ones through the use of common wildcards.
type: string
Path_Key:
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
Refresh_Interval:
description: The interval of refreshing the list of watched
files in seconds. (default:60)
type: string
Rotate_Wait:
description: Specify the number of extra time in seconds to
monitor a file once is rotated in case some pending data is
flushed. (default:5)
type: string
Skip_Long_Lines:
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. (default:Off)
type: string
Tag:
description: Set a tag (with regex-extract fields) that will
be placed on lines read.
type: string
Tag_Regex:
description: Set a regex to extract fields from the file.
type: string
storage.type:
description: Specify the buffering mechanism to use. It can
be memory or filesystem. (default:memory)
type: string
type: object
labels:
additionalProperties:
type: string
type: object
metrics:
description: Metrics defines the service monitor endpoints
properties:
interval:
type: string
path:
type: string
port:
format: int32
type: integer
prometheusAnnotations:
type: boolean
serviceMonitor:
type: boolean
timeout:
type: string
type: object
mountPath:
type: string
parser:
type: string
podPriorityClassName:
type: string
position_db:
properties:
emptyDir:
description: Represents an empty directory for a pod. Empty
directory volumes support ownership management and SELinux
relabeling.
properties:
medium:
description: 'What type of storage medium should back this
directory. The default is "" which means to use the node''s
default medium. Must be an empty string (default) or Memory.
More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
type: string
sizeLimit:
description: 'Total amount of local storage required for
this EmptyDir volume. The size limit is also applicable
for memory medium. The maximum usage on memory medium
EmptyDir would be the minimum value between the SizeLimit
specified here and the sum of memory limits of all containers
in a pod. The default is nil which means that the limit
is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir'
type: string
type: object
host_path:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
hostPath:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
pvc:
description: PersistentVolumeClaim defines the Spec and the
Source at the same time. The PVC will be created with the
configured spec and the name defined in the source.
properties:
source:
description: PersistentVolumeClaimVolumeSource references
the user's PVC in the same namespace. This volume finds
the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource
is, essentially, a wrapper around another type of volume
that is owned by someone else (the system).
properties:
claimName:
description: 'ClaimName is the name of a PersistentVolumeClaim
in the same namespace as the pod using this volume.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims'
type: string
readOnly:
description: Will force the ReadOnly setting in VolumeMounts.
Default false.
type: boolean
required:
- claimName
type: object
spec:
description: PersistentVolumeClaimSpec describes the common
attributes of storage devices and allows a Source for
provider-specific attributes
properties:
accessModes:
description: 'AccessModes contains the desired access
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
items:
type: string
type: array
dataSource:
description: This field requires the VolumeSnapshotDataSource
alpha feature gate to be enabled and currently VolumeSnapshot
is the only supported data source. If the provisioner
can support VolumeSnapshot data source, it will create
a new volume and data will be restored to the volume
at the same time. If the provisioner does not support
VolumeSnapshot data source, volume will not be created
and the failure will be reported as an event. In the
future, we plan to support more data source types
and the behavior of the provisioner may change.
properties:
apiGroup:
description: APIGroup is the group for the resource
being referenced. If APIGroup is not specified,
the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
type: string
kind:
description: Kind is the type of resource being
referenced
type: string
name:
description: Name is the name of resource being
referenced
type: string
required:
- kind
- name
type: object
resources:
description: 'Resources represents the minimum resources
the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'
properties:
limits:
additionalProperties:
type: string
description: 'Limits describes the maximum amount
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
type: string
description: 'Requests describes the minimum amount
of compute resources required. If Requests is
omitted for a container, it defaults to Limits
if that is explicitly specified, otherwise to
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
selector:
description: A label query over volumes to consider
for binding.
properties:
matchExpressions:
description: matchExpressions is a list of label
selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
properties:
key:
description: key is the label key that the
selector applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string
values. If the operator is In or NotIn,
the values array must be non-empty. If the
operator is Exists or DoesNotExist, the
values array must be empty. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value}
pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions,
whose key field is "key", the operator is "In",
and the values array contains only "value". The
requirements are ANDed.
type: object
type: object
storageClassName:
description: 'Name of the StorageClass required by the
claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
type: string
volumeMode:
description: volumeMode defines what type of volume
is required by the claim. Value of Filesystem is implied
when not included in claim spec. This is a beta feature.
type: string
volumeName:
description: VolumeName is the binding reference to
the PersistentVolume backing this claim.
type: string
type: object
type: object
type: object
positiondb:
properties:
emptyDir:
description: Represents an empty directory for a pod. Empty
directory volumes support ownership management and SELinux
relabeling.
properties:
medium:
description: 'What type of storage medium should back this
directory. The default is "" which means to use the node''s
default medium. Must be an empty string (default) or Memory.
More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
type: string
sizeLimit:
description: 'Total amount of local storage required for
this EmptyDir volume. The size limit is also applicable
for memory medium. The maximum usage on memory medium
EmptyDir would be the minimum value between the SizeLimit
specified here and the sum of memory limits of all containers
in a pod. The default is nil which means that the limit
is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir'
type: string
type: object
host_path:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
hostPath:
description: Represents a host path mapped into a pod. Host
path volumes do not support ownership management or SELinux
relabeling.
properties:
path:
description: 'Path of the directory on the host. If the
path is a symlink, it will follow the link to the real
path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
type:
description: 'Type for HostPath Volume Defaults to "" More
info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath'
type: string
required:
- path
type: object
pvc:
description: PersistentVolumeClaim defines the Spec and the
Source at the same time. The PVC will be created with the
configured spec and the name defined in the source.
properties:
source:
description: PersistentVolumeClaimVolumeSource references
the user's PVC in the same namespace. This volume finds
the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource
is, essentially, a wrapper around another type of volume
that is owned by someone else (the system).
properties:
claimName:
description: 'ClaimName is the name of a PersistentVolumeClaim
in the same namespace as the pod using this volume.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims'
type: string
readOnly:
description: Will force the ReadOnly setting in VolumeMounts.
Default false.
type: boolean
required:
- claimName
type: object
spec:
description: PersistentVolumeClaimSpec describes the common
attributes of storage devices and allows a Source for
provider-specific attributes
properties:
accessModes:
description: 'AccessModes contains the desired access
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
items:
type: string
type: array
dataSource:
description: This field requires the VolumeSnapshotDataSource
alpha feature gate to be enabled and currently VolumeSnapshot
is the only supported data source. If the provisioner
can support VolumeSnapshot data source, it will create
a new volume and data will be restored to the volume
at the same time. If the provisioner does not support
VolumeSnapshot data source, volume will not be created
and the failure will be reported as an event. In the
future, we plan to support more data source types
and the behavior of the provisioner may change.
properties:
apiGroup:
description: APIGroup is the group for the resource
being referenced. If APIGroup is not specified,
the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
type: string
kind:
description: Kind is the type of resource being
referenced
type: string
name:
description: Name is the name of resource being
referenced
type: string
required:
- kind
- name
type: object
resources:
description: 'Resources represents the minimum resources
the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'
properties:
limits:
additionalProperties:
type: string
description: 'Limits describes the maximum amount
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
type: string
description: 'Requests describes the minimum amount
of compute resources required. If Requests is
omitted for a container, it defaults to Limits
if that is explicitly specified, otherwise to
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
selector:
description: A label query over volumes to consider
for binding.
properties:
matchExpressions:
description: matchExpressions is a list of label
selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
properties:
key:
description: key is the label key that the
selector applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string
values. If the operator is In or NotIn,
the values array must be non-empty. If the
operator is Exists or DoesNotExist, the
values array must be empty. This array is
replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value}
pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions,
whose key field is "key", the operator is "In",
and the values array contains only "value". The
requirements are ANDed.
type: object
type: object
storageClassName:
description: 'Name of the StorageClass required by the
claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
type: string
volumeMode:
description: volumeMode defines what type of volume
is required by the claim. Value of Filesystem is implied
when not included in claim spec. This is a beta feature.
type: string
volumeName:
description: VolumeName is the binding reference to
the PersistentVolume backing this claim.
type: string
type: object
type: object
type: object
resources:
description: ResourceRequirements describes the compute resource
requirements.
properties:
limits:
additionalProperties:
type: string
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
type: string
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
security:
description: Security defines Fluentd, Fluentbit deployment security
properties
properties:
podSecurityContext:
description: PodSecurityContext holds pod-level security attributes
and common container settings. Some fields are also present
in container.securityContext. Field values of container.securityContext
take precedence over field values of PodSecurityContext.
properties:
fsGroup:
description: "A special supplemental group that applies
to all containers in a pod. Some volume types allow the
Kubelet to change the ownership of that volume to be owned
by the pod: \n 1. The owning GID will be the FSGroup 2.
The setgid bit is set (new files created in the volume
will be owned by FSGroup) 3. The permission bits are OR'd
with rw-rw---- \n If unset, the Kubelet will not modify
the ownership and permissions of any volume."
format: int64
type: integer
runAsGroup:
description: The GID to run the entrypoint of the container
process. Uses runtime default if unset. May also be set