File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ kubectl apply -f test-daemonset.yml
44kubectl apply -f test-daemonset-flicker.yml
55kubectl apply -f test-statefulset.yml
66kubectl apply -f test-statefulset-flicker.yml
7+ kubectl apply -f test-deployment-flicker.yml
78kubectl apply -f test-cronjob.yml
89kubectl apply -f test-cronjob-fail.yml
10+ kubectl apply -f test-job-fail.yml
911echo " Alle Test-Ressourcen angelegt im Namespace kubeeventjava"
1012echo " Warte auf Pods..."
1113kubectl rollout status daemonset/test-daemonset -n kubeeventjava --timeout=60s
1214kubectl rollout status statefulset/test-statefulset -n kubeeventjava --timeout=60s
13- echo " DaemonSet und StatefulSet laufen. CronJob startet jede Minute. DaemonSet- Flicker crasht alle ~10s."
15+ echo " DaemonSet und StatefulSet laufen. CronJob startet jede Minute. Flicker-Ressourcen crashen alle ~10s."
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ kubectl delete -f test-daemonset.yml --ignore-not-found
44kubectl delete -f test-daemonset-flicker.yml --ignore-not-found
55kubectl delete -f test-statefulset.yml --ignore-not-found
66kubectl delete -f test-statefulset-flicker.yml --ignore-not-found
7+ kubectl delete -f test-deployment-flicker.yml --ignore-not-found
78kubectl delete -f test-cronjob.yml --ignore-not-found
89kubectl delete -f test-cronjob-fail.yml --ignore-not-found
10+ kubectl delete -f test-job-fail.yml --ignore-not-found
911echo " Alle Test-Ressourcen geloescht."
Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : test-deployment-flicker
5+ namespace : kubeeventjava
6+ labels :
7+ app : test-deployment-flicker
8+ spec :
9+ replicas : 2
10+ selector :
11+ matchLabels :
12+ app : test-deployment-flicker
13+ template :
14+ metadata :
15+ labels :
16+ app : test-deployment-flicker
17+ spec :
18+ terminationGracePeriodSeconds : 5
19+ containers :
20+ - name : test
21+ image : busybox:1.36
22+ command : ["sh", "-c", "echo 'deployment flicker starting'; sleep 10; echo 'deployment flicker failing'; exit 1"]
23+ resources :
24+ requests :
25+ cpu : " 10m"
26+ memory : " 16Mi"
27+ limits :
28+ cpu : " 50m"
29+ memory : " 32Mi"
Original file line number Diff line number Diff line change 1+ apiVersion : batch/v1
2+ kind : Job
3+ metadata :
4+ name : test-job-fail
5+ namespace : kubeeventjava
6+ labels :
7+ app : test-job-fail
8+ spec :
9+ backoffLimit : 4
10+ template :
11+ metadata :
12+ labels :
13+ app : test-job-fail
14+ spec :
15+ restartPolicy : OnFailure
16+ containers :
17+ - name : test
18+ image : busybox:1.36
19+ command : ["sh", "-c", "echo 'job failing intentionally'; exit 1"]
20+ resources :
21+ requests :
22+ cpu : " 10m"
23+ memory : " 16Mi"
24+ limits :
25+ cpu : " 50m"
26+ memory : " 32Mi"
You can’t perform that action at this time.
0 commit comments