KubernetesApiSeedProviderOptionsType
이 콘텐츠는 아직 번역되지 않았습니다.
KubernetesApiSeedProviderOptionsType =
object
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:6
Plain options-object shape accepted by a KubernetesApiSeedProvider.
Properties
Section titled “Properties”fetchEndpoints?
Section titled “fetchEndpoints?”
readonlyoptionalfetchEndpoints?: () =>Promise<string[]>
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:16
Override the Endpoints-fetch function — defaults to the in-cluster API.
Returns
Section titled “Returns”Promise<string[]>
readonlyoptionallog?: (message,error?) =>void
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:34
Reports addresses dropped by pinnedAddresses. Default: no-op.
Parameters
Section titled “Parameters”message
Section titled “message”string
error?
Section titled “error?”unknown
Returns
Section titled “Returns”void
namespace
Section titled “namespace”
readonlynamespace:string
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:8
Target namespace to look up endpoints in.
pinnedAddresses?
Section titled “pinnedAddresses?”
readonlyoptionalpinnedAddresses?: readonlystring[]
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:29
CIDRs the pod IPs must fall inside. Endpoints are IPs, so entries are CIDRs only — a host suffix could never match and is rejected. Unset means no pinning.
The K8s path is already the better-defended one: the default fetcher
pins TLS to the ServiceAccount CA, so it does not inherit DNS’s
trust problem the way DnsSeedProviderOptionsType does. What
this guards is the layer above — an Endpoints object may name
any IP, including one outside the cluster, and RBAC that can write
Endpoints is a much cheaper find than a CA key.
readonlyport:number
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:14
Port for the cluster remoting endpoint on each pod.
serviceName
Section titled “serviceName”
readonlyserviceName:string
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:10
Service or Endpoints name whose backing pods provide the cluster.
systemName
Section titled “systemName”
readonlysystemName:string
Defined in: src/discovery/KubernetesApiSeedProviderOptions.ts:12
System name stamped on the discovered NodeAddresses.
