Create counter-pod.yaml

pull/46254/head
Sabbir Ahmed Shameem 2024-05-06 20:47:22 +06:00 committed by GitHub
parent 52c1ddfbd1
commit fdf2d942b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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']