public Builder publishNotReadyAddresses(@Nullable Output<Boolean> publishNotReadyAddresses) {
            $.publishNotReadyAddresses = publishNotReadyAddresses;
            return this;
        }
@param publishNotReadyAddresses publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet&#39;s Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered &#34;ready&#34; even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceSpecArgs.java