Closed shonge closed 5 years ago
How many pv are there? kubectl get pv | wc -l
We had created 9 pvs on one node default in the DinD script: https://github.com/pingcap/tidb-operator/blob/master/manifests/local-dind/dind-cluster-v1.12.sh#L519
30
kubectl -n e2e-cluster1 get tc e2e-cluster1 -o yaml |grep pvReclaimPolicy
pvReclaimPolicy: Retain
kubectl -n e2e-cluster2 get tc e2e-cluster2 -o yaml |grep pvReclaimPolicy
pvReclaimPolicy: Retain
kubectl -n e2e-cluster1 get tc e2e-cluster1-other -o yaml |grep pvReclaimPolicy
pvReclaimPolicy: Retain
proposal:
OK, you need more PVs on DinD env if run e2e. Rebuild the DinD env with:
Firstly, run the following commands to destroy the DinD Kubernetes cluster:
$ manifests/local-dind/dind-cluster-v1.12.sh clean
$ sudo rm -rf data/kube-node-*
Then rebuild the DinD env with 100 PVs(enough) per node:
$ PV_NUMS=100 KUBE_REPO_PREFIX=uhub.ucloud.cn/pingcap manifests/local-dind/dind-cluster-v1.12.sh up
Bug Report
What version of Kubernetes are you using?
v1.12.5 What version of TiDB Operator are you using?
v1.0.0-rc.1 What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
What's the status of the TiDB cluster pods?
What did you do?
kubectl apply -f e2e.yaml What did you expect to see? Pass e2e test What did you see instead?