@@ -27,19 +27,86 @@ spec:
2727 timeout : 5m
2828 content : |
2929 sudo apt install redis-tools -y
30+
31+ - name : Sleep for five minutes
32+ try :
33+ - sleep :
34+ duration : 5m
3035
31- - name : Ping Cluster
36+ - name : Ping Redis- Cluster from every node
3237 try :
3338 - script :
39+ timeout : 30s
40+ content : |
41+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
42+ check :
43+ ($stdout=='PONG') : true
44+ - script :
45+ timeout : 30s
46+ content : |
47+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 2 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
48+ check :
49+ ($stdout=='PONG') : true
50+ - script :
51+ timeout : 30s
3452 content : |
35- kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
53+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 3 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
54+ check :
55+ ($stdout=='PONG') : true
56+ - script :
57+ timeout : 30s
58+ content : |
59+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 4 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
60+ check :
61+ ($stdout=='PONG') : true
62+ - script :
63+ timeout : 30s
64+ content : |
65+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 5 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
66+ check :
67+ ($stdout=='PONG') : true
68+ - script :
69+ timeout : 30s
70+ content : |
71+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 6 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 ping
3672 check :
3773 ($stdout=='PONG') : true
3874
39- - name : Try saving a key
75+ - name : Try saving a key from every node
4076 try :
4177 - script :
78+ timeout : 30s
79+ content : |
80+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-0 bar-0
81+ check :
82+ ($stdout=='OK') : true
83+ - script :
84+ timeout : 30s
85+ content : |
86+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-1 bar-1
87+ check :
88+ ($stdout=='OK') : true
89+ - script :
90+ timeout : 30s
91+ content : |
92+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-2 bar-2
93+ check :
94+ ($stdout=='OK') : true
95+ - script :
96+ timeout : 30s
97+ content : |
98+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-3 bar-3
99+ check :
100+ ($stdout=='OK') : true
101+ - script :
102+ timeout : 30s
103+ content : |
104+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-4 bar-4
105+ check :
106+ ($stdout=='OK') : true
107+ - script :
108+ timeout : 30s
42109 content : |
43- kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo bar
110+ kubectl get node -o wide | grep 'worker' | awk '{print $6}' | head -n 1 | tail -n 1 | xargs -I {} redis-cli -h {} -c -p 6380 set foo-5 bar-5
44111 check :
45112 ($stdout=='OK') : true
0 commit comments