跳转到内容
简体中文

singleProviderDiscovery

此内容尚不支持你的语言。

singleProviderDiscovery(kind, settings): SeedProvider

Defined in: src/discovery/autoDiscovery.ts:107

Named-provider shorthand used by Cluster.bootstrap({ discovery: '...' }). Pins the chain to a single provider type (configured from env vars) instead of running the full fallback ladder. Useful when you know you’re running on K8s and want the bootstrap to fail loudly if the K8s API isn’t reachable, instead of silently falling through to DNS.

"config" | "dns" | "kubernetes"

AutoDiscoverySettings

SeedProvider