@Requires(env="k8s")
@ConfigurationProperties(value="kubernetes.client")
public class KubernetesConfiguration
extends io.micronaut.http.client.HttpClientConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
KubernetesConfiguration.KubernetesConfigMapsConfiguration
Kubernetes secrets configuration properties.
|
static class |
KubernetesConfiguration.KubernetesConnectionPoolConfiguration
The default connection pool configuration.
|
static class |
KubernetesConfiguration.KubernetesDiscoveryConfiguration
Configuration class for the discovery client of Kubernetes.
|
static class |
KubernetesConfiguration.KubernetesSecretsConfiguration
Kubernetes secrets configuration properties.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NAMESPACE
The default namespace value.
|
static java.lang.String |
NAMESPACE_PATH |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
KubernetesConfiguration()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
KubernetesConfiguration.KubernetesConfigMapsConfiguration |
getConfigMaps() |
io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration() |
io.micronaut.discovery.DiscoveryConfiguration |
getDiscovery() |
java.lang.String |
getHost() |
java.lang.String |
getNamespace() |
int |
getPort() |
KubernetesConfiguration.KubernetesSecretsConfiguration |
getSecrets() |
boolean |
isSecure() |
void |
setConfigMaps(KubernetesConfiguration.KubernetesConfigMapsConfiguration configMapsConfiguration) |
void |
setDiscovery(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration) |
void |
setHost(java.lang.String host) |
void |
setNamespace(java.lang.String namespace) |
void |
setPort(int port) |
void |
setSecrets(KubernetesConfiguration.KubernetesSecretsConfiguration secretsConfiguration) |
void |
setSecure(boolean secure) |
java.lang.String |
toString() |
getChannelOptions, getConnectTimeout, getDefaultCharset, getLoggerName, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isFollowRedirects, setChannelOptions, setConnectTimeout, setDefaultCharset, setFollowRedirects, setLoggerName, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final java.lang.String PREFIX
public static final java.lang.String NAMESPACE_PATH
public static final java.lang.String DEFAULT_NAMESPACE
@Nonnull public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The Kubernetes API host namepublic int getPort()
public void setPort(int port)
port
- The port for the Kubernetes APIpublic boolean isSecure()
public void setSecure(boolean secure)
secure
- Set if the Kubernetes API server is exposed over HTTPS@Nonnull public io.micronaut.discovery.DiscoveryConfiguration getDiscovery()
DiscoveryConfiguration
.public void setDiscovery(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration)
discoveryConfiguration
- The discovery configuration@Nonnull public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- Sets the namespace.public io.micronaut.http.client.HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
getConnectionPoolConfiguration
in class io.micronaut.http.client.HttpClientConfiguration
@Nonnull public KubernetesConfiguration.KubernetesSecretsConfiguration getSecrets()
KubernetesConfiguration.KubernetesSecretsConfiguration
.public void setSecrets(KubernetesConfiguration.KubernetesSecretsConfiguration secretsConfiguration)
secretsConfiguration
- the KubernetesConfiguration.KubernetesSecretsConfiguration
.@Nonnull public KubernetesConfiguration.KubernetesConfigMapsConfiguration getConfigMaps()
public void setConfigMaps(KubernetesConfiguration.KubernetesConfigMapsConfiguration configMapsConfiguration)
configMapsConfiguration
- The config maps configuration propertiespublic java.lang.String toString()
toString
in class java.lang.Object