Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae132a0

Browse files
author
Mik Vyatskov
committed
[fluentd-gcp] Update Stackdriver plugin to version 0.6.7
1 parent 87a1b5f commit ae132a0

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ data:
364364
<match kubernetes.**>
365365
@type google_cloud
366366
367+
# Try to detect JSON formatted log entries.
368+
detect_json true
367369
# Collect metrics in Prometheus registry about plugin activity.
368370
enable_monitoring true
369371
monitoring_type prometheus
@@ -373,11 +375,11 @@ data:
373375
# Set queue_full action to block because we want to pause gracefully
374376
# in case of the off-the-limits load instead of throwing an exception
375377
buffer_queue_full_action block
376-
# Set the chunk limit conservatively to avoid exceeding the GCL limit
377-
# of 10MiB per write request.
378-
buffer_chunk_limit 2M
378+
# Set the chunk limit conservatively to avoid exceeding the recommended
379+
# chunk size of 5MB per write request.
380+
buffer_chunk_limit 1M
379381
# Cap the combined memory usage of this buffer and the one below to
380-
# 2MiB/chunk * (6 + 2) chunks = 16 MiB
382+
# 1MiB/chunk * (6 + 2) chunks = 8 MiB
381383
buffer_queue_limit 6
382384
# Never wait more than 5 seconds before flushing logs in the non-error case.
383385
flush_interval 5s
@@ -394,21 +396,22 @@ data:
394396
<match **>
395397
@type google_cloud
396398
399+
detect_json true
397400
enable_monitoring true
398401
monitoring_type prometheus
399402
detect_subservice false
400403
buffer_type file
401404
buffer_path /var/log/fluentd-buffers/kubernetes.system.buffer
402405
buffer_queue_full_action block
403-
buffer_chunk_limit 2M
406+
buffer_chunk_limit 1M
404407
buffer_queue_limit 2
405408
flush_interval 5s
406409
max_retry_wait 30
407410
disable_retry_limit
408411
num_threads 2
409412
</match>
410413
metadata:
411-
name: fluentd-gcp-config-v1.2.0
414+
name: fluentd-gcp-config-v1.2.2
412415
namespace: kube-system
413416
labels:
414417
addonmanager.kubernetes.io/mode: Reconcile

cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: extensions/v1beta1
22
kind: DaemonSet
33
metadata:
4-
name: fluentd-gcp-v2.0
4+
name: fluentd-gcp-v2.0.9
55
namespace: kube-system
66
labels:
77
k8s-app: fluentd-gcp
88
kubernetes.io/cluster-service: "true"
99
addonmanager.kubernetes.io/mode: Reconcile
10-
version: v2.0
10+
version: v2.0.9
1111
spec:
1212
updateStrategy:
1313
type: RollingUpdate
@@ -16,7 +16,7 @@ spec:
1616
labels:
1717
k8s-app: fluentd-gcp
1818
kubernetes.io/cluster-service: "true"
19-
version: v2.0
19+
version: v2.0.9
2020
# This annotation ensures that fluentd does not get evicted if the node
2121
# supports critical pod annotation based priority scheme.
2222
# Note that this does not guarantee admission on the nodes (#40573).
@@ -27,7 +27,7 @@ spec:
2727
hostNetwork: true
2828
containers:
2929
- name: fluentd-gcp
30-
image: gcr.io/google-containers/fluentd-gcp:2.0.8
30+
image: gcr.io/google-containers/fluentd-gcp:2.0.9
3131
env:
3232
- name: FLUENTD_ARGS
3333
value: --no-supervisor -q
@@ -117,7 +117,7 @@ spec:
117117
path: /usr/lib64
118118
- name: config-volume
119119
configMap:
120-
name: fluentd-gcp-config-v1.2.0
120+
name: fluentd-gcp-config-v1.2.2
121121
- name: ssl-certs
122122
hostPath:
123123
path: /etc/ssl/certs

0 commit comments

Comments
 (0)