K8S在IPv4环境下部署失败,pd容器一直不断重启

这个是在一个高性能环境,单机pd启动,还是概率启动失败:

ci:~ # kubectl logs -n ns basic-pd-0 pd -f
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local

Name: basic-pd-0.basic-pd-peer.ns.svc
Address 1: 100.91.136.6
nslookup domain basic-pd-0.basic-pd-peer.ns.svc.svc success
starting pd-server …
/pd-server --data-dir=/var/lib/pd --name=basic-pd-0 --peer-urls=http://0.0.0.0:2380 --advertise-peer-urls=http://basic-pd-0.basic-pd-peer.ns.svc:2380 --client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://basic-pd-0.basic-pd-peer.ns.svc:2379 --config=/etc/pd/pd.toml
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:43] [“Welcome to Placement Driver (PD)”]
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:44] [PD] [release-version=v6.5.8]
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:45] [PD] [edition=Community]
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:46] [PD] [git-hash=4506d63ba4fba7123ecc8277da7ef5f635efee90]
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:47] [PD] [git-branch=heads/refs/tags/v6.5.8]
[2024/07/12 02:54:48.942 +00:00] [INFO] [util.go:48] [PD] [utc-build-time=“2024-01-25 10:03:20”]
[2024/07/12 02:54:48.942 +00:00] [INFO] [metricutil.go:83] [“disable Prometheus push client”]
[2024/07/12 02:54:48.942 +00:00] [INFO] [server.go:253] [“PD Config”] [config=“{"client-urls":"http://0.0.0.0:2379","peer-urls":"http://0.0.0.0:2380","advertise-client-urls":"http://basic-pd-0.basic-pd-peer.ns.svc:2379","advertise-peer-urls":"http://basic-pd-0.basic-pd-peer.ns.svc:2380","name":"basic-pd-0","data-dir":"/var/lib/pd","force-new-cluster":false,"enable-grpc-gateway":true,"initial-cluster":"basic-pd-0=http://basic-pd-0.basic-pd-peer.ns.svc:2380","initial-cluster-state":"new","initial-cluster-token":"pd-cluster","join":"","lease":3,"log":{"level":"info","format":"text","disable-timestamp":false,"file":{"filename":"","max-size":0,"max-days":0,"max-backups":0},"development":false,"disable-caller":false,"disable-stacktrace":false,"disable-error-verbose":true,"sampling":null,"error-output-path":""},"tso-save-interval":"3s","tso-update-physical-interval":"50ms","enable-local-tso":false,"metric":{"job":"basic-pd-0","address":"","interval":"15s"},"schedule":{"max-snapshot-count":64,"max-pending-peer-count":64,"max-merge-region-size":20,"max-merge-region-keys":0,"split-merge-interval":"1h0m0s","swtich-witness-interval":"1h0m0s","enable-one-way-merge":"false","enable-cross-table-merge":"true","patrol-region-interval":"10ms","max-store-down-time":"30m0s","max-store-preparing-time":"48h0m0s","leader-schedule-limit":4,"leader-schedule-policy":"count","region-schedule-limit":2048,"replica-schedule-limit":64,"merge-schedule-limit":8,"hot-region-schedule-limit":4,"hot-region-cache-hits-threshold":3,"store-limit":{},"tolerant-size-ratio":0,"low-space-ratio":0.8,"high-space-ratio":0.7,"region-score-formula-version":"v2","scheduler-max-waiting-operator":5,"enable-remove-down-replica":"true","enable-replace-offline-replica":"true","enable-make-up-replica":"true","enable-remove-extra-replica":"true","enable-location-replacement":"true","enable-debug-metrics":"false","enable-joint-consensus":"true","enable-tikv-split-region":"true","schedulers-v2":[{"type":"balance-region","args":null,"disable":false,"args-payload":""},{"type":"balance-leader","args":null,"disable":false,"args-payload":""},{"type":"hot-region","args":null,"disable":false,"args-payload":""},{"type":"split-bucket","args":null,"disable":false,"args-payload":""}],"schedulers-payload":null,"store-limit-mode":"manual","hot-regions-write-interval":"10m0s","hot-regions-reserved-days":7,"enable-diagnostic":"false","enable-witness":"false"},"replication":{"max-replicas":3,"location-labels":"","strictly-match-label":"false","enable-placement-rules":"true","enable-placement-rules-cache":"false","isolation-level":""},"pd-server":{"use-region-storage":"true","max-gap-reset-ts":"24h0m0s","key-type":"table","runtime-services":"","metric-storage":"","dashboard-address":"auto","trace-region-flow":"true","flow-round-by-digit":3,"min-resolved-ts-persistence-interval":"1s"},"cluster-version":"0.0.0","labels":{},"quota-backend-bytes":"8GiB","auto-compaction-mode":"periodic","auto-compaction-retention-v2":"1h","TickInterval":"500ms","ElectionInterval":"3s","PreVote":true,"max-request-bytes":157286400,"security":{"cacert-path":"","cert-path":"","key-path":"","cert-allowed-cn":null,"SSLCABytes":null,"SSLCertBytes":null,"SSLKEYBytes":null,"redact-info-log":false,"encryption":{"data-encryption-method":"plaintext","data-key-rotation-period":"168h0m0s","master-key":{"type":"plaintext","key-id":"","region":"","endpoint":"","path":""}}},"label-property":null,"WarningMsgs":null,"DisableStrictReconfigCheck":false,"HeartbeatStreamBindInterval":"1m0s","LeaderPriorityCheckInterval":"1m0s","dashboard":{"tidb-cacert-path":"","tidb-cert-path":"","tidb-key-path":"","public-path-prefix":"","internal-proxy":false,"enable-telemetry":false,"enable-experimental":false},"replication-mode":{"replication-mode":"majority","dr-auto-sync":{"label-key":"","primary":"","dr":"","primary-replicas":0,"dr-replicas":0,"wait-store-timeout":"1m0s","pause-region-split":"false"}}}”]
[2024/07/12 02:54:48.946 +00:00] [INFO] [server.go:228] [“register REST path”] [path=/pd/api/v1]
[2024/07/12 02:54:48.947 +00:00] [INFO] [server.go:228] [“register REST path”] [path=/pd/api/v2/]
[2024/07/12 02:54:48.947 +00:00] [INFO] [server.go:228] [“register REST path”] [path=/autoscaling]
[2024/07/12 02:54:48.947 +00:00] [INFO] [distro.go:51] [“Using distribution strings”] [strings={}]
[2024/07/12 02:54:48.948 +00:00] [INFO] [server.go:228] [“register REST path”] [path=/dashboard/api/]
[2024/07/12 02:54:48.948 +00:00] [INFO] [server.go:228] [“register REST path”] [path=/dashboard/]
[2024/07/12 02:54:48.948 +00:00] [INFO] [etcd.go:117] [“configuring peer listeners”] [listen-peer-urls=“[http://0.0.0.0:2380]”]
[2024/07/12 02:54:48.949 +00:00] [INFO] [etcd.go:127] [“configuring client listeners”] [listen-client-urls=“[http://0.0.0.0:2379]”]
[2024/07/12 02:54:48.949 +00:00] [INFO] [systimemon.go:30] [“start system time monitor”]
[2024/07/12 02:54:48.949 +00:00] [INFO] [etcd.go:611] [“pprof is enabled”] [path=/debug/pprof]
[2024/07/12 02:54:48.949 +00:00] [INFO] [etcd.go:305] [“starting an etcd server”] [etcd-version=3.4.21] [git-sha=“Not provided (use ./build instead of go build)”] [go-version=go1.19.13] [go-os=linux] [go-arch=amd64] [max-cpu-set=16] [max-cpu-available=16] [member-initialized=true] [name=basic-pd-0] [data-dir=/var/lib/pd] [wal-dir=] [wal-dir-dedicated=] [member-dir=/var/lib/pd/member] [force-new-cluster=false] [heartbeat-interval=500ms] [election-timeout=3s] [initial-election-tick-advance=true] [snapshot-count=100000] [snapshot-catchup-entries=5000] [initial-advertise-peer-urls=“[http://basic-pd-0.basic-pd-peer.ns.svc:2380]”] [listen-peer-urls=“[http://0.0.0.0:2380]”] [advertise-client-urls=“[http://basic-pd-0.basic-pd-peer.ns.svc:2379]”] [listen-client-urls=“[http://0.0.0.0:2379]”] [listen-metrics-urls=“”] [cors=“[]“] [host-whitelist=”[]”] [initial-cluster=] [initial-cluster-state=new] [initial-cluster-token=] [quota-backend-bytes=8589934592] [max-request-bytes=157286400] [max-concurrent-streams=4294967295] [pre-vote=true] [initial-corrupt-check=false] [corrupt-check-time-interval=0s] [auto-compaction-mode=periodic] [auto-compaction-retention=1h0m0s] [auto-compaction-interval=1h0m0s] [discovery-url=] [discovery-proxy=]
[2024/07/12 02:54:48.949 +00:00] [WARN] [server.go:297] [“exceeded recommended request limit”] [max-request-bytes=157286400] [max-request-size=“157 MB”] [recommended-request-bytes=10485760] [recommended-request-size=“10 MB”]
2024-07-12 02:54:48.949450 W | pkg/fileutil: check file permission: directory “/var/lib/pd” exist, but the permission is “drwxr-xr-x”. The recommended permission is “-rwx------” to prevent possible unprivileged access to the data.
[2024/07/12 02:54:48.952 +00:00] [INFO] [backend.go:80] [“opened backend db”] [path=/var/lib/pd/member/snap/db] [took=2.525235ms]
[2024/07/12 02:54:49.570 +00:00] [INFO] [server.go:462] [“recovered v2 store from snapshot”] [snapshot-index=600006] [snapshot-size=“18 kB”]
[2024/07/12 02:54:49.571 +00:00] [INFO] [kvstore.go:388] [“restored last compact revision”] [meta-bucket-name=meta] [meta-bucket-name-key=finishedCompactRev] [restored-compact-revision=597525]
[2024/07/12 02:54:49.573 +00:00] [INFO] [server.go:480] [“recovered v3 backend from snapshot”] [backend-size-bytes=2547712] [backend-size=“2.5 MB”] [backend-size-in-use-bytes=417792] [backend-size-in-use=“418 kB”]
[2024/07/12 02:54:49.784 +00:00] [INFO] [raft.go:586] [“restarting local member”] [cluster-id=a57d21dfafd146d9] [local-member-id=43c224d21a700f9b] [commit-index=606478]
[2024/07/12 02:54:49.784 +00:00] [INFO] [raft.go:1523] [“43c224d21a700f9b switched to configuration voters=(4882505430828322715)”]
[2024/07/12 02:54:49.784 +00:00] [INFO] [raft.go:706] [“43c224d21a700f9b became follower at term 29”]
[2024/07/12 02:54:49.784 +00:00] [INFO] [raft.go:389] [“newRaft 43c224d21a700f9b [peers: [43c224d21a700f9b], term: 29, commit: 606478, applied: 600006, lastindex: 606478, lastterm: 29]”]
[2024/07/12 02:54:49.784 +00:00] [INFO] [capability.go:76] [“enabled capabilities for version”] [cluster-version=3.4]
[2024/07/12 02:54:49.784 +00:00] [INFO] [cluster.go:256] [“recovered/added member from store”] [cluster-id=a57d21dfafd146d9] [local-member-id=43c224d21a700f9b] [recovered-remote-peer-id=43c224d21a700f9b] [recovered-remote-peer-urls=“[http://basic-pd-0.basic-pd-peer.ns.svc:2380]”]
[2024/07/12 02:54:49.784 +00:00] [INFO] [cluster.go:269] [“set cluster version from store”] [cluster-version=3.4]
[2024/07/12 02:54:49.785 +00:00] [WARN] [store.go:1379] [“simple token is not cryptographically signed”]
[2024/07/12 02:54:49.785 +00:00] [INFO] [kvstore.go:388] [“restored last compact revision”] [meta-bucket-name=meta] [meta-bucket-name-key=finishedCompactRev] [restored-compact-revision=597525]
[2024/07/12 02:54:49.787 +00:00] [INFO] [quota.go:126] [“enabled backend quota”] [quota-name=v3-applier] [quota-size-bytes=8589934592] [quota-size=“8.6 GB”]
[2024/07/12 02:54:49.787 +00:00] [INFO] [server.go:803] [“starting etcd server”] [local-member-id=43c224d21a700f9b] [local-server-version=3.4.21] [cluster-id=a57d21dfafd146d9] [cluster-version=3.4]
[2024/07/12 02:54:49.787 +00:00] [INFO] [server.go:682] [“started as single-node; fast-forwarding election ticks”] [local-member-id=43c224d21a700f9b] [forward-ticks=5] [forward-duration=2.5s] [election-ticks=6] [election-timeout=3s]
[2024/07/12 02:54:49.789 +00:00] [INFO] [etcd.go:247] [“now serving peer/client/metrics”] [local-member-id=43c224d21a700f9b] [initial-advertise-peer-urls=“[http://basic-pd-0.basic-pd-peer.ns.svc:2380]”] [listen-peer-urls=“[http://0.0.0.0:2380]”] [advertise-client-urls=“[http://basic-pd-0.basic-pd-peer.ns.svc:2379]”] [listen-client-urls=“[http://0.0.0.0:2379]”] [listen-metrics-urls=“”]
[2024/07/12 02:54:49.789 +00:00] [INFO] [etcd.go:585] [“serving peer traffic”] [address=“[::]:2380”]
[2024/07/12 02:54:51.785 +00:00] [INFO] [raft.go:929] [“43c224d21a700f9b is starting a new election at term 29”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [raft.go:735] [“43c224d21a700f9b became pre-candidate at term 29”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [raft.go:830] [“43c224d21a700f9b received MsgPreVoteResp from 43c224d21a700f9b at term 29”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [raft.go:719] [“43c224d21a700f9b became candidate at term 30”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [raft.go:830] [“43c224d21a700f9b received MsgVoteResp from 43c224d21a700f9b at term 30”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [raft.go:771] [“43c224d21a700f9b became leader at term 30”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [node.go:327] [“raft.node: 43c224d21a700f9b elected leader 43c224d21a700f9b at term 30”]
[2024/07/12 02:54:51.786 +00:00] [INFO] [server.go:2069] [“published local member to cluster through raft”] [local-member-id=43c224d21a700f9b] [local-member-attributes=“{Name:basic-pd-0 ClientURLs:[http://basic-pd-0.basic-pd-peer.ns.svc:2379]}”] [request-path=/0/members/43c224d21a700f9b/attributes] [cluster-id=a57d21dfafd146d9] [publish-timeout=11s]
[2024/07/12 02:54:51.787 +00:00] [INFO] [serve.go:145] [“serving client traffic insecurely; this is strongly discouraged!”] [address=“[::]:2379”]
2024-07-12 02:54:59.790273 W | etcdserver: could not get cluster response from http://basic-pd-0.basic-pd-peer.ns.svc:2380: Get “http://basic-pd-0.basic-pd-peer.ns.svc:2380/members”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2024/07/12 02:54:59.790 +00:00] [ERROR] [etcdutil.go:71] [“failed to get cluster from remote”] [error=“[PD:etcd:ErrEtcdGetCluster]could not retrieve cluster information from the given URLs: could not retrieve cluster information from the given URLs”]
[2024/07/12 02:54:59.790 +00:00] [FATAL] [main.go:120] [“run server failed”] [error=“[PD:server:ErrCancelStartEtcd]etcd start canceled”] [stack=“main.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:120\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250”]