26 lines
497 B
YAML
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
|
|
---
|