fluentd add port promtheus and health check

fluentd readiness and liveness health check can use fluent-plugin-prometheus port
This commit is contained in:
likerj 2019-10-03 16:29:39 +08:00 committed by test
parent 325848509a
commit a192b59f9f

View File

@ -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