From a192b59f9f063bfe9b491e2535af8e6310786173 Mon Sep 17 00:00:00 2001 From: likerj Date: Thu, 3 Oct 2019 16:29:39 +0800 Subject: [PATCH] fluentd add port promtheus and health check fluentd readiness and liveness health check can use fluent-plugin-prometheus port --- .../fluentd-elasticsearch/fluentd-es-ds.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml b/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml index c6bb79136c4..cdfc203a60e 100644 --- a/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml +++ b/cluster/addons/fluentd-elasticsearch/fluentd-es-ds.yaml @@ -89,6 +89,20 @@ spec: readOnly: true - name: config-volume mountPath: /etc/fluent/config.d + ports: + - containerPort: 24231 + name: prometheus + protocol: TCP + livenessProbe: + tcpSocket: + port: prometheus + initialDelaySeconds: 5 + timeoutSeconds: 10 + readinessProbe: + tcpSocket: + port: prometheus + initialDelaySeconds: 5 + timeoutSeconds: 10 terminationGracePeriodSeconds: 30 volumes: - name: varlog