Optional ReadonlyapiAPI server base URL. Defaults to the in-cluster
https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT.
Optional ReadonlycacheMilliseconds a resolved instance list is served from cache.
0 disables caching so every resolve hits the backend. A watched
service invalidates its own entry on every change, so this is a safety net
rather than the primary freshness mechanism.
Optional ReadonlyejectionOutlier-ejection tuning, or false to disable ejection entirely.
Optional ReadonlyhttpOverrides the default fetch-backed HTTP seam.
ReadonlynamespaceNamespace the services live in.
Optional ReadonlyportSelects the ports[] entry by name when a service exposes several.
ReadonlyproviderDiscriminant.
Optional ReadonlysecureWhether resolved instances speak TLS.
Optional ReadonlyselfAdvertise this instance to the backend (Consul only).
Optional ReadonlystrategyDefault selection strategy; PickOptions.strategy overrides it per call.
Optional ReadonlytokenBearer token, used verbatim.
Omit it in-cluster and the provider reads the projected service-account token instead, re-reading it periodically because Kubernetes rotates it.
The
'kubernetes'arm — EndpointSlices read from the API server.Since
0.2.0