Open vanhtuan0409 opened 1 year ago
tidb-cluster Helm chart is deprecated, and we recommend to use the TidbCluster CRD now.
TidbCluster CRD also suffer from this issue. The operator will create a configmap for tikv startup scripts. I am willing to contribute update, may you point me to the snippet where the operator create startup scripts configmap?
For the connectivity case, could you add the following environment for TiKV?
env:
- name: GRPC_DNS_RESOLVER
value: native
currently, we have two versions of StartScripts for CRDs
But if we change the StartScript directly, and then after we upgrade the TiDB Operator, as the ConfigMap will be upgraded, then all existing clusters we be restarted.
Bug Report
What version of Kubernetes are you using?
1.27.3 under k3s distribution
What version of TiDB Operator are you using?
1.4.5
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
local-path
What's the status of the TiDB cluster pods?
Running
What did you do?
What did you expect to see?
TiKV successfully started and able to connect to PD server
What did you see instead?
TiKV unable to start with these following logs. Altho running curl directly within TiKV pod successfully, TiKV unable to connect to PD server
My hypothesis is that somehow single level DNS was unable to resolve. I tried to edit TiKV configmap to change it to
${CLUSTER_NAME}-pd.${NAMESPACE}.svc:2379
then it was successfully connect but later got reversed by the operatorPropose fix at https://github.com/pingcap/tidb-operator/pull/5145