tc yaml 没有改过,https://github.com/pingcap/tidb-operator/blob/master/examples/basic/tidb-cluster.yaml
pod 的 yaml basic-pd-0.yaml (5.1 KB)
cm/coredns yaml cm-coredns.yaml (1.1 KB)
/etc/resolv/conf
search tidb-cluster.svc.cluster.local svc.cluster.local cluster.local
nameserver 22.0.0.10
options ndots:5
我觉得还需要关注这个,在 kubectl -n tidb-cluster exec -it basic-pd-0 – sh 中命令的结果
/ # echo $HOSTNAME
basic-pd-0.basic-pd-peer.tidb-cluster.svc.cluster.local
/ # hostname
basic-pd-0