PKS

From Leo's Notes
Revision as of 21:58, 4 September 2019 by Leo (talk | contribs) (Created page with " == Cluster Sinks == Cluster sink resources will configure the fluent-bit daemonset containers to log all syslog messages from the node it's running on to the cluster sink des...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 4 September 2019, at 21:58.

Cluster Sinks

Cluster sink resources will configure the fluent-bit daemonset containers to log all syslog messages from the node it's running on to the cluster sink destination. The rsyslog daemon on the node itself is not touched as it will always forward logs to itself.

Fluent bit is configured to serve the status API on port 5000. The cluster sink status is retrieved from this status API and will return 'Failing' if any of these pods return a non-successful response.

A cluster sink resource can be defined by:

apiVersion: apps.pivotal.io/v1beta1
kind: ClusterSink
metadata:
  name: clustersink
spec:
  type: syslog
  host: itsopksmgnt-logstash.uc.ucalgary.ca
  port: 514
  enable_tls: false

The cluster sink status can be obtained from kubectl get clustersink:

# kubectl get clustersink
NAME          TYPE     URL   HOST            PORT   TLS     INSECURE   AGE   STATUS
clustersink   syslog         10.254.247.29   514    false              1h    Running