Class KubernetesClientFactory

java.lang.Object
com.predic8.membrane.core.kubernetes.client.KubernetesClientFactory

public class KubernetesClientFactory extends Object
Sharing the KubernetesClient instances has two benefits:
  • The KubernetesClient only uses one HttpClient and thereby shares the timer (connection closer) and connection pool.
  • The KubernetesClient only downloads the schema once (speeding up initialization).
Note: "baseUrl" is the KubernetesClient's only supported configuration. (KubernetesClientBuilder supports more, which would need to be implemented here.)
  • Constructor Details

    • KubernetesClientFactory

      public KubernetesClientFactory(HttpClientFactory httpClientFactory)
  • Method Details