0% found this document useful (0 votes)
24 views3 pages

Kubernetes Addons

Uploaded by

electronics1234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

Kubernetes Addons

Uploaded by

electronics1234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Logging:

- Most of the Kubernetes cluster components like api-server, kube-scheduler, Etcd, kube
proxy, etc,. run as containers.
- However, the kubelet component runs as a native systemd service.
- We can find the kubernetes pod logs in the following directories of every worker node.
o /var/log/containers: All the container logs are present in a single location.
o /var/log/pods/: Under this location, the container logs are organized in separate pod
folders
/var/log/pods/<namespace>_<pod_name>_<pod_id>/<container_name>/. Each pod
folder contains the individual container folder and its respective log file.
- If underlying container engine is docker then, we will also find logs in
/var/lib/docker/containers folder.

Types of logs:

- Application logs: Logs from user deployed applications. Application logs help in understanding
what is happening inside the application.
- Kubernetes Cluster components: Logs from api-server, kube-scheduler, etcd, kube-proxy, etc.
These logs help you troubleshoot Kubernetes cluster issues.
- Kubernetes Audit logs: All logs related to API activity recorded by the API server. Primarily used
for investigating suspicious API activity.

Logging Patterns:

- Node Level Logging Agent: In this method, a node-level login agent (Eg: Fluentd) reads the log
file created using container STDOUT and STDERR streams and then sends it to a logging backend
like Elasticsearch. This is a commonly used logging pattern and works pretty well without any
overhead.

- Streaming sidecar container: This streaming sidecar method is useful when the application
cannot write logs to the STDOUT and STDERR streams directly. So, the application container
writes all the logs to a file within the container. Then a sidecar container reads from that log file
and streams it to STDOUT and STDERR. Rest is the same as the first method.

1
- Sidecar Logging Agent: In this method, the logs don’t get streamed to STDOUT and STDERR.
Instead, a sidecar container with a logging agent would be running along with the application
container. Then, the logging agent would directly stream the logs to the logging backend.

Elastic Search:

1. Elasticsearch – Log aggregator


2. Flunetd/Fluentbit – Logging agent (Fluentbit is the light-weight agent designed for container
workloads)
3. Kibana – Log Visualization and dashboarding tool

2
Monitoring

https://devopscube.com/setup-prometheus-monitoring-on-kubernetes/

Monitoring to be done later- in details

http://10.0.0.219:30200 – kibana

http://10.0.0.27:30300 – Prometheus

http://10.0.0.219:31000 – Alert manager

http://10.0.0.27:32000 – Grafana

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy