I have do a logging example
apiVersion: v1
kind: Pod
metadata:
name: counter
spec:
containers:
- name: count
image: busybox:1.28
args: [/bin/sh, -c,
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done']
to create this counter
kubectl apply -f counter.yaml
to get logs
kubectl logs counter
taken from : Kubernetes logging example
how ever when i tried the same with python print
or stdout.write
its not working