Learn Kubernetes: Access to the logs

In this series of stories, you will learn how to use Kubernetes. Today, let’s see how to access to the logs of Pods.

The Kubernetes log provides access to the output of containers in a pod. Some services allow you to centralize all pods from all nodes.

Create a Pod resource file mylogs.yaml running a container display a log :

apiVersion: v1
kind: Pod
name: mylogs
- name: mycontainer
image: alpine
- "sh"
- "-c"
- "while true; do echo $(date); sleep…




The Open DevOps Academy shares practices, experiences, and ideas about many domains of DevOps.

Recommended from Medium

How to manage Prometheus high-availability with PostgreSQL + TimescaleDB

Converting Google Audio Files

Is Your Development Team Slacking?

A Recap: The First Four Months of My Gap Year in San Francisco


Heading to Las Vegas for the ACM #PartyForACause Festival! Don’t miss it! https://t.co/z11ZXCdcEJ

How To Control Your Web Application With An Integrated AI Chatbot

Integrating Things 3 with Microsoft Outlook on Mac (Updated: 2020)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

Learn Kubernetes: Secrets — Use a generic secret

Kubernetes Security Best Practices | Wildcard

Create Kubernetes K8s or OpenShift OCP namespace project — Ansible module k8s

Kubernetes deployment YAML Walkthrough