K8s Deployment: TiDB Master Node Cannot Create PV, but Node1 and Node2 Can

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: k8s部署tidb master节点不能创建pv,但是node1、node2却可以

| username: TiDBer_2BkpUxcW

[TiDB Usage Environment]
Production Environment / Testing / Poc

[TiDB Version]
v7.1.0

[Encountered Problem: Problem Phenomenon and Impact]
Dear experts, please take a look, and thank you in advance. According to the official documentation, I mounted the disk directory and deployed the program using kubectl apply -f local-volume-provisioner.yaml. The PVs on the node nodes can be generated normally, but the PV on the master node cannot. No pod in the entire TiDB cluster is distributed on the master node. How can this problem be resolved?

[Attachments: Screenshots/Logs/Monitoring]




| username: yiduoyunQ | Original post link

If I didn’t misunderstand the question, first confirm whether the control plane node is schedulable? (It is unschedulable by default) Well-Known Labels, Annotations and Taints | Kubernetes

| username: yiduoyunQ | Original post link

Supplement: The previous version might have been called node-role.kubernetes.io/master:NoSchedule. You can check the specific version on the Kubernetes official website or look at the taint marks of the current node.

| username: TiDBer_2BkpUxcW | Original post link

Thank you for your suggestion. I will definitely try it when I go to the company. However, I found that during deployment, the main issue is that the master node fails to generate PV successfully. When creating the TiDB cluster, there isn’t a single available PV on the master, so it directly looks for PVs on node1 and node2. I think this is a critical issue. Do you have any thoughts on this?

| username: redgame | Original post link

Confirm the control plane node.

| username: TiDBer_2BkpUxcW | Original post link

Thanks for the advice, I’ll try it after I start work.

| username: TiDBer_2BkpUxcW | Original post link

Brother, take a look, is it this role? Should we delete the control-plane from the master node, or add control-plane to node1 and node2?

| username: TiDBer_2BkpUxcW | Original post link

Brother, can you check if this is correct? Should we remove the control-plane from the master node, or add control-plane to node1 and node2?

| username: TiDBer_2BkpUxcW | Original post link

Boss, awesome, awesome, please accept my admiration. It was indeed this issue, and it has been resolved. Thank you, thank you.

| username: TiDBer_2BkpUxcW | Original post link

Boss, you’re awesome, please accept my admiration. This was indeed the problem, and it’s been resolved. Thank you so much.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.