Kubernetes Administrator: The Logging Mechanism


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
Kubernetes doesn't provide any native storage solution for log data, but it can be integrated with existing logging solutions. You can classify Kubernetes logs and manage them at the application and cluster level to enable observability and identify the root cause of issues. In this course, you'll learn how to do just that. You'll kick off by exploring the Logging architecture of Kubernetes clusters, the different log types maintained in Kubernetes clusters, the Kubernetes architecture that helps manage logging at the node and cluster level, best practices for Kubernetes logging, the role of the Resource Metrics pipeline, and the architecture of Metric server. Next, you'll configure a Pod specification with a container to write logs to standard output every 5 seconds and return snapshot logs from various Pod types. Moving on, you'll configure a Pod to write two different log files using different formats, create a Pod with two sidecar containers, and inspect, debug, and get logs from applications. Finally, you'll install the Metric server and use it to manage metrics for Nodes and Pods. You'll view Pod and Node resource metrics, create a Pod with one container, attach a Shell, and then execute commands in it. This course is part of a series that aligns with the Certified Kubernetes Administrator exam's objectives and can be used in its preparation.

Expected Duration (hours)
1.0

Lesson Objectives

Kubernetes Administrator: The Logging Mechanism

  • discover the key concepts covered in this course
  • recognize the Logging architecture of a Kubernetes cluster along with the different types of logs maintained in a Kubernetes cluster
  • create a manifest file and use the kubectl command to configure a Pod specification with a container that writes logs to standard output every 5 seconds
  • demonstrate the use of the kubectl log command with various flags to return snapshot logs from Pods as well from Pods with single and multi-containers and from all containers in Pods defined by labels
  • describe the Kubernetes architecture that helps manage logging at the Node-level and Cluster-level logging architectures
  • configure a Pod that runs a single container and writes to two different log files using different formats
  • create a configuration file that can be used to create a Pod with two sidecar containers where the sidecar containers tail a particular log file from a shared Volume and redirect the logs to their stdout stream
  • recall the best practices that need to be considered when using the Kubernetes logging mechanism
  • use kubectl commands to inspect, debug, and get logs from applications
  • describe the role of Resource Metrics pipeline along with the architecture and design of Metric server
  • install and use the Metric server to manage metrics for Nodes and Pods in the Kube-system namespace
  • use the Metric server add-on to view the metrics of the resources that are being used by Pods and nodes in a cluster
  • create a configuration file that can be used to create a Pod with one container, attach a Shell to the running container, and execute commands in the Shell of the container
  • summarize the key concepts covered in this course
  • Course Number:
    it_dokca_15_enus

    Expertise Level
    Intermediate