Untitled

mail@pastecode.io avatar
unknown
yaml
a year ago
987 B
1
Indexable
Never
пример как это может быть


apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
 name: ingress-log-flow
 namespace: ingress-nginx
spec:
 filters:
 - parser:
     parse:
       type: nginx
     remove_key_name_field: true
     reserve_data: true
 localOutputRefs:
 - ingress-log-output
 - ingress-log-output-slave
 match:
 - select:
     labels:
       app: ingress-nginx
apiVersion: logging.banzaicloud.io/v1beta1
kind: Output
metadata:
 name: ingress-log-output
 namespace: ingress-nginx
spec:
 kafka:
   brokers: kafka.master-dc-cloud.dit.deg:30001,kafka.master-dc-cloud.dit.deg:30002,kafka.master-dc-cloud.dit.deg:30003
   buffer:
     chunk_limit_size: “3000000”
     flush_interval: 5s
     flush_mode: interval
     flush_thread_count: 4
     retry_max_interval: “30”
     tags: ingress-logs
     timekey: 1m
     timekey_use_utc: true
     timekey_wait: 30s
   default_topic: ingress-logs
   format:
     type: json
   sasl_over_ssl: false