@@ -13,53 +13,53 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
1313
1414# Deploy and check
1515kubectl apply -f work.yaml
16- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 120
17- and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
18- and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
19- and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 120
20- and waitForKubectl " get service" " $DEPLOYMENT *ClusterIP" 8529 1 120
21- and waitForKubectl " get service" " $DEPLOYMENT -ea *LoadBalancer" " -v;pending" 1 180
16+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 2
17+ and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 2
18+ and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 2
19+ and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 2
20+ and waitForKubectl " get service" " $DEPLOYMENT *ClusterIP" 8529 1 2
21+ and waitForKubectl " get service" " $DEPLOYMENT -ea *LoadBalancer" " -v;pending" 1 3
2222or fail " Deployment did not get ready."
2323
2424# Automatic check
2525set ip (getLoadBalancerIP " $DEPLOYMENT -ea" )
26- testArangoDB $ip 120
26+ testArangoDB $ip 2
2727or fail " ArangoDB was not reachable."
2828
2929# Patching
3030output " Scaling db servers up" " Patching Spec for Scaling up DBservers"
3131kubectl patch arango $DEPLOYMENT --type =' json' -p =' [{"op": "replace", "path": "/spec/dbservers/count", "value":5}]'
32- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 11 120
33- and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 5 120
34- and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
35- and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 120
32+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 11 2
33+ and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 5 2
34+ and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 2
35+ and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 2
3636or fail " Deployment did not get ready."
3737
3838# Patching
3939output " Scaling coordinators up" " Patching Spec for Scaling up coordinators"
4040kubectl patch arango $DEPLOYMENT --type =' json' -p =' [{"op": "replace", "path": "/spec/coordinators/count", "value":4}]'
41- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 12 120
42- and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 5 120
43- and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
44- and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 4 120
41+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 12 2
42+ and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 5 2
43+ and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 2
44+ and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 4 2
4545or fail " Deployment did not get ready."
4646
4747# Patching
4848output " Scaling dbservers down" " Patching Spec for Scaling down dbservers"
4949kubectl patch arango $DEPLOYMENT --type =' json' -p =' [{"op": "replace", "path": "/spec/dbservers/count", "value":2}]'
50- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 120
51- and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 2 120
52- and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
53- and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 4 120
50+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 2
51+ and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 2 2
52+ and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 2
53+ and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 4 2
5454or fail " Deployment did not get ready."
5555
5656# Patching
5757output " Scaling coordinators down" " Patching Spec for Scaling down coordinators"
5858kubectl patch arango $DEPLOYMENT --type =' json' -p =' [{"op": "replace", "path": "/spec/coordinators/count", "value":1}]'
59- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 6 120
60- and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 2 120
61- and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
62- and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 1 120
59+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 6 2
60+ and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 2 2
61+ and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 2
62+ and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 1 2
6363or fail " Deployment did not get ready."
6464
6565# Manual check
@@ -68,7 +68,7 @@ inputAndLogResult
6868
6969# Cleanup
7070kubectl delete -f work.yaml
71- and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 0 120
71+ and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 0 2
7272or fail " Could not delete deployment."
7373
7474output " Ready" " "
0 commit comments