Created
January 7, 2020 15:14
-
-
Save aravindavk/6208e9d136f89acde90cde0990a77c27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MASTER=master.example.com | |
N1=kube-node1.example.com | |
N2=kube-node2.example.com | |
N3=kube-node3.example.com | |
STORAGE_POOL_NAME=sp1 | |
OPERATOR_YAML=operator.yaml | |
PVC_NAME=pv1 | |
PVC_FILE_NAME=pv1.yaml | |
APP_POD_NAME=pod1 | |
APP_POD_FILE=pod1.yaml | |
NODE=$MASTER | |
TEST kube_master_setup --record-output tmp/master-details.json | |
NODE=$N1 | |
TEST kube_node_setup | |
TEST join_kube_master tmp/master-details.json | |
TEST loop_device_setup /dev/vdc | |
NODE=$N2 | |
TEST kube_node_setup | |
TEST join_kube_master tmp/master-details.json | |
TEST loop_device_setup /dev/vdc | |
NODE=$N3 | |
TEST kube_node_setup | |
TEST join_kube_master tmp/master-details.json | |
TEST loop_device_setup /dev/vdc | |
NODE=$MASTER | |
TEST kubectl create -f $OPERATOR_YAML | |
EXPECT_WITHIN 4 180 kubectl get pods -n kadalu --next grep "Running" --next wc -l | |
TEST kubectl kadalu storage-add $STORAGE_POOL_NAME --type Replica3 \ | |
--device $N1:/dev/vdc | |
--device $N2:/dev/vdc | |
--device $N3:/dev/vdc | |
EXPECT_WITHIN 3 180 kubectl get pods -n kadalu --next grep $STORAGE_POOL_NAME --next wc -l | |
# Sample PVC Test | |
TEST kubectl create -f $PVC_FILE | |
EXPECT_WITHIN 1 60 kubectl get pvc --next grep $PVC_NAME --next grep Bound --next wc -l | |
# Sample app Test | |
TEST kubectl create -f $APP_POD_FILE | |
EXPECT_WITHIN 180 kubectl get pods --next grep $APP_POD_NAME --next grep Running --next wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment