learn-grafana/logspammer.yaml
Waylon S. Walker 774ea44af1 wip
2025-05-23 10:24:41 -05:00

26 lines
497 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: logspammer
---
apiVersion: v1
kind: Pod
metadata:
name: logspammer
namespace: prod
labels:
app: logger
service_name: logspammer-service-name
spec:
restartPolicy: Always
containers:
- name: logspammer
image: busybox:latest
command: ["/bin/sh", "-c"]
args:
- |
while true; do
echo "$(date -Is) ⚙️ Hello from the Kubernetes logger pod!"
sleep 5
done
---