Class KubernetesClientConfiguration

java.lang.Object
io.micronaut.kubernetes.client.openapi.config.KubernetesClientConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@Internal @ConfigurationProperties("kubernetes.client") @Requires(property="kubernetes.client.enabled", value="true", defaultValue="true") public class KubernetesClientConfiguration extends Object implements io.micronaut.core.util.Toggleable
Kubernetes client configuration.
  • Field Details

  • Constructor Details

    • KubernetesClientConfiguration

      public KubernetesClientConfiguration()
  • Method Details

    • getKubeConfigPath

      public String getKubeConfigPath()
      Path of the kube config file. Default: file:$HOME/.kube/config.
      Returns:
      kube config path
    • isEnabled

      public boolean isEnabled()
      Enable/disable kubernetes client. Default: true.
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      true if kubernetes client is enabled, false otherwise
    • getServiceAccount

      Service account authentication configuration.
      Returns:
      service account authentication configuration
    • setServiceAccount

      public void setServiceAccount(KubernetesClientConfiguration.ServiceAccount serviceAccount)
      Sets service account authentication configuration.
      Parameters:
      serviceAccount - service account authentication configuration