@@ -19,21 +19,36 @@ spec:
1919 - /bin/bash
2020 - /tmp/script/script.sh
2121 env:
22- - name: MASTER_UI
22+ - name: MASTER_UI_0
2323 valueFrom:
2424 configMapKeyRef:
2525 name: test-hbase-ui-endpoints
26- key: hbase.master.ui
27- - name: REGIONSERVER_UI
26+ key: hbase.master-0 .ui
27+ - name: MASTER_UI_1
2828 valueFrom:
2929 configMapKeyRef:
3030 name: test-hbase-ui-endpoints
31- key: hbase.regionserver .ui
32- - name: RESTSERVER_UI
31+ key: hbase.master-1 .ui
32+ - name: REGIONSERVER_UI_0
3333 valueFrom:
3434 configMapKeyRef:
3535 name: test-hbase-ui-endpoints
36- key: hbase.restserver.ui
36+ key: hbase.regionserver-0.ui
37+ - name: REGIONSERVER_UI_1
38+ valueFrom:
39+ configMapKeyRef:
40+ name: test-hbase-ui-endpoints
41+ key: hbase.regionserver-1.ui
42+ - name: RESTSERVER_UI_0
43+ valueFrom:
44+ configMapKeyRef:
45+ name: test-hbase-ui-endpoints
46+ key: hbase.restserver-0.ui
47+ - name: RESTSERVER_UI_1
48+ valueFrom:
49+ configMapKeyRef:
50+ name: test-hbase-ui-endpoints
51+ key: hbase.restserver-1.ui
3752 volumeMounts:
3853 - name: script
3954 mountPath: /tmp/script
@@ -55,11 +70,18 @@ data:
5570 script.sh: |
5671 set -euxo pipefail
5772
58- echo "Attempting to reach master at $MASTER_UI..."
59- curl --retry 0 -f -s -o /dev/null -w "%{http_code}" $MASTER_UI | grep 200
60- echo "Attempting to reach region-server at $REGIONSERVER_UI..."
61- curl --retry 0 -f -s -o /dev/null -w "%{http_code}" $REGIONSERVER_UI | grep 200
62- echo "Attempting to reach rest-server at $RESTSERVER_UI..."
63- curl --retry 0 -f -s -o /dev/null -w "%{http_code}" $RESTSERVER_UI | grep 200
73+ echo "Attempting to reach master at $MASTER_UI_0..."
74+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${MASTER_UI_0}" | grep 200
75+ echo "Attempting to reach region-server at $REGIONSERVER_UI_0..."
76+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${REGIONSERVER_UI_0}" | grep 200
77+ echo "Attempting to reach rest-server at $RESTSERVER_UI_0..."
78+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${RESTSERVER_UI_0}" | grep 200
79+
80+ echo "Attempting to reach master at $MASTER_UI_1..."
81+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${MASTER_UI_1}" | grep 200
82+ echo "Attempting to reach region-server at $REGIONSERVER_UI_1..."
83+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${REGIONSERVER_UI_1}" | grep 200
84+ echo "Attempting to reach rest-server at $RESTSERVER_UI_1..."
85+ curl --retry 0 -f -s -o /dev/null -w "%{http_code}" "${RESTSERVER_UI_1}" | grep 200
6486
6587 echo "All tests successful!"
0 commit comments