11.5.
11.5.1. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: logging.openshift.io/v1 kind: ClusterLogging metadata: # ... spec: # ... collection: type: <log_collector_type>1 resources: {} tolerations: {} # ...$ oc apply -f <filename>.yaml
11.5.2. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: logging.openshift.io/v1alpha1 kind: LogFileMetricExporter metadata: name: instance namespace: openshift-logging spec: nodeSelector: {}1 resources:2 limits: cpu: 500m memory: 256Mi requests: cpu: 200m memory: 128Mi tolerations: []3 # ...$ oc apply -f <filename>.yaml
$ oc get pods -l app.kubernetes.io/component=logfilesmetricexporter -n openshift-loggingNAME READY STATUS RESTARTS AGE logfilesmetricexporter-9qbjj 1/1 Running 0 2m46s logfilesmetricexporter-cbc4v 1/1 Running 0 2m46s
11.5.3. 링크 복사링크가 클립보드에 복사되었습니다!
$ oc -n openshift-logging edit ClusterLogging instanceapiVersion: logging.openshift.io/v1 kind: ClusterLogging metadata: name: instance namespace: openshift-logging spec: collection: type: fluentd resources: limits:1 memory: 736Mi requests: cpu: 100m memory: 736Mi # ...
11.5.4. 링크 복사링크가 클립보드에 복사되었습니다!
11.5.4.1. 링크 복사링크가 클립보드에 복사되었습니다!
apiVersion: logging.openshift.io/v1beta1 kind: ClusterLogForwarder metadata: # ... spec: serviceAccountName: <service_account_name> inputs: - name: http-receiver1 receiver: type: http2 http: format: kubeAPIAudit3 port: 84434 pipelines:5 - name: http-pipeline inputRefs: - http-receiver # ...apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: inputs: - name: http-receiver1 receiver: type: http2 http: format: kubeAPIAudit3 port: 84434 pipelines:5 - inputRefs: - http-receiver name: http-pipeline # ...$ oc apply -f <filename>.yaml
11.5.5. 링크 복사링크가 클립보드에 복사되었습니다!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ oc edit ClusterLogging instanceapiVersion: logging.openshift.io/v1 kind: ClusterLogging metadata: name: instance namespace: openshift-logging spec: collection: fluentd: buffer: chunkLimitSize: 8m1 flushInterval: 5s2 flushMode: interval3 flushThreadCount: 34 overflowAction: throw_exception5 retryMaxInterval: "300s"6 retryType: periodic7 retryWait: 1s8 totalLimitSize: 32m9 # ...$ oc get pods -l component=collector -n openshift-logging$ oc extract configmap/collector-config --confirm<buffer> @type file path '/var/lib/fluentd/default' flush_mode interval flush_interval 5s flush_thread_count 3 retry_type periodic retry_wait 1s retry_max_interval 300s retry_timeout 60m queued_chunks_limit_size "#{ENV['BUFFER_QUEUE_LIMIT'] || '32'}" total_limit_size "#{ENV['TOTAL_LIMIT_SIZE_PER_BUFFER'] || '8589934592'}" chunk_limit_size 8m overflow_action throw_exception disable_chunk_backup true </buffer>