Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 703 Bytes

S05_L02_Telemetry and Observability.md

File metadata and controls

36 lines (28 loc) · 703 Bytes

Telemetry and Observability

Links

Demo Reference

Log in to your Kubernetes control plane server.

Create a Pod.

vi logging-pod.yml
apiVersion: v1
kind: Pod
metadata:
  name: logging-pod
spec:
  containers:
  - name: busybox
    image: busybox:stable
    command: ['sh', '-c', 'while true; do echo Hello, world!; sleep 5; done']
kubectl apply -f logging-pod.yml

Get the logs from the Pod's container.

kubectl logs logging-pod -c busybox