Closed yahonda closed 2 months ago
we do not recommend using tidb-scheduler now, in newer versions of k8s (v1.19+), there is no need to install it.
when installing, .scheduler.create: false
can be used to install TiDB Operator without tidb-scheduler (https://github.com/pingcap/tidb-operator/blob/v1.5.3/charts/tidb-operator/values.yaml#L152). This is the default behavior in the coming v1.6
Would you advise how to set .scheduler.create: false
?
It works.
helm install --namespace tidb-admin tidb-operator pingcap/tidb-operator --version v1.5.3 --set scheduler.create=false
ubuntu@k3s:~$ helm install --namespace tidb-admin tidb-operator pingcap/tidb-operator --version v1.5.3 --set scheduler.create=false
NAME: tidb-operator
LAST DEPLOYED: Fri Apr 19 15:38:17 2024
NAMESPACE: tidb-admin
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Make sure tidb-operator components are running:
kubectl get pods --namespace tidb-admin -l app.kubernetes.io/instance=tidb-operator
ubuntu@k3s:~$ kubectl get pods --namespace tidb-admin -l app.kubernetes.io/instance=tidb-operator
NAME READY STATUS RESTARTS AGE
tidb-controller-manager-7f8c786f9-tbm97 0/1 ContainerCreating 0 6s
ubuntu@k3s:~$ kubectl get pods --namespace tidb-admin -l app.kubernetes.io/instance=tidb-operator
NAME READY STATUS RESTARTS AGE
tidb-controller-manager-7f8c786f9-tbm97 0/1 ContainerCreating 0 33s
ubuntu@k3s:~ kubectl get pods --namespace tidb-admin -l app.kubernetes.io/instance=tidb-operator
NAME READY STATUS RESTARTS AGE
tidb-controller-manager-7f8c786f9-tbm97 1/1 Running 0 55s
ubuntu@k3s:~$
Bug Report
What version of Kubernetes are you using?
What version of TiDB Operator are you using?
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
{tidb-cluster-namespace}
created yetWhat's the status of the TiDB cluster pods?
{tidb-cluster-namespace}
created yetWhat did you do? I attempt to run TiDB Operator v1.5.3 and follow the step below, it used to work with TiDB Operator v1.5.1. Just replacing 1.5.1 and 1.5.3
on Macbook Pro as host
Install multipass to run Ubuntu guest
Create cloud-init.yaml
runcmd:
ssh_authorized_keys:
on Ubuntu guest
What did you expect to see? Both of
tidb-controller
andtidb-scheduler
are Running.What did you see instead?
tidb-scheduler
keeps crashing.