Class HazelcastKubernetesDiscoveryProperties
java.lang.Object
org.apereo.cas.configuration.model.support.hazelcast.discovery.HazelcastKubernetesDiscoveryProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-hazelcast-discovery-kubernetes")
public class HazelcastKubernetesDiscoveryProperties
extends Object
implements Serializable
- Since:
- 5.3.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Defines the number of retries to Kubernetes API.Defines an oauth token for the kubernetes client to access the kubernetes REST API.CA Authority certificate from Kubernetes Master.Defines an alternative address for the kubernetes master.Defines the namespace of the application POD through the Service Discovery REST API of Kubernetes.Defines the pod label to lookup through the Service Discovery REST API of Kubernetes.Defines the pod label value to lookup through the Service Discovery REST API of Kubernetes.Defines the DNS service lookup domain.int
Defines the DNS service lookup timeout in seconds.Defines the service label to lookup through the Service Discovery REST API of Kubernetes.Defines the service label value to lookup through the Service Discovery REST API of Kubernetes.Defines the service name of the POD to lookup through the Service Discovery REST API of Kubernetes.int
If specified with a value greater than 0, its value defines the endpoint port of the service (overriding the default).boolean
Defines if not ready addresses should be evaluated to be discovered on startup.boolean
Defines if the node name should be used as external address, instead of looking up the external IP using the/nodes
resource.setApiRetries
(int apiRetries) Defines the number of retries to Kubernetes API.setApiToken
(String apiToken) Defines an oauth token for the kubernetes client to access the kubernetes REST API.setCaCertificate
(String caCertificate) CA Authority certificate from Kubernetes Master.setKubernetesMaster
(String kubernetesMaster) Defines an alternative address for the kubernetes master.setNamespace
(String namespace) Defines the namespace of the application POD through the Service Discovery REST API of Kubernetes.setPodLabelName
(String podLabelName) Defines the pod label to lookup through the Service Discovery REST API of Kubernetes.setPodLabelValue
(String podLabelValue) Defines the pod label value to lookup through the Service Discovery REST API of Kubernetes.setResolveNotReadyAddresses
(boolean resolveNotReadyAddresses) Defines if not ready addresses should be evaluated to be discovered on startup.setServiceDns
(String serviceDns) Defines the DNS service lookup domain.setServiceDnsTimeout
(int serviceDnsTimeout) Defines the DNS service lookup timeout in seconds.setServiceLabelName
(String serviceLabelName) Defines the service label to lookup through the Service Discovery REST API of Kubernetes.setServiceLabelValue
(String serviceLabelValue) Defines the service label value to lookup through the Service Discovery REST API of Kubernetes.setServiceName
(String serviceName) Defines the service name of the POD to lookup through the Service Discovery REST API of Kubernetes.setServicePort
(int servicePort) If specified with a value greater than 0, its value defines the endpoint port of the service (overriding the default).setUseNodeNameAsExternalAddress
(boolean useNodeNameAsExternalAddress) Defines if the node name should be used as external address, instead of looking up the external IP using the/nodes
resource.
-
Constructor Details
-
HazelcastKubernetesDiscoveryProperties
public HazelcastKubernetesDiscoveryProperties()
-
-
Method Details
-
getServiceDns
Defines the DNS service lookup domain. This is defined as something similar tomy-svc.my-namespace.svc.cluster.local
. -
getServiceDnsTimeout
public int getServiceDnsTimeout()Defines the DNS service lookup timeout in seconds. Defaults to 5 secs. -
getServiceName
Defines the service name of the POD to lookup through the Service Discovery REST API of Kubernetes. -
getServiceLabelName
Defines the service label to lookup through the Service Discovery REST API of Kubernetes. -
getServiceLabelValue
Defines the service label value to lookup through the Service Discovery REST API of Kubernetes. -
getNamespace
Defines the namespace of the application POD through the Service Discovery REST API of Kubernetes. -
isResolveNotReadyAddresses
public boolean isResolveNotReadyAddresses()Defines if not ready addresses should be evaluated to be discovered on startup. -
getKubernetesMaster
Defines an alternative address for the kubernetes master. Defaults to:https://kubernetes.default.svc
-
getApiToken
Defines an oauth token for the kubernetes client to access the kubernetes REST API. Defaults to reading the token from the auto-injected file at:/var/run/secrets/kubernetes.io/serviceaccount/token
. -
getPodLabelName
Defines the pod label to lookup through the Service Discovery REST API of Kubernetes. -
getPodLabelValue
Defines the pod label value to lookup through the Service Discovery REST API of Kubernetes. -
isUseNodeNameAsExternalAddress
public boolean isUseNodeNameAsExternalAddress()Defines if the node name should be used as external address, instead of looking up the external IP using the/nodes
resource. Default is false. -
getApiRetries
public int getApiRetries()Defines the number of retries to Kubernetes API. Defaults to: 3. -
getCaCertificate
CA Authority certificate from Kubernetes Master. Defaults to reading the certificate from the auto-injected file at:/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
. -
getServicePort
public int getServicePort()If specified with a value greater than 0, its value defines the endpoint port of the service (overriding the default). -
setServiceDns
Defines the DNS service lookup domain. This is defined as something similar tomy-svc.my-namespace.svc.cluster.local
.- Returns:
this
.
-
setServiceDnsTimeout
Defines the DNS service lookup timeout in seconds. Defaults to 5 secs.- Returns:
this
.
-
setServiceName
Defines the service name of the POD to lookup through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setServiceLabelName
Defines the service label to lookup through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setServiceLabelValue
Defines the service label value to lookup through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setNamespace
Defines the namespace of the application POD through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setResolveNotReadyAddresses
public HazelcastKubernetesDiscoveryProperties setResolveNotReadyAddresses(boolean resolveNotReadyAddresses) Defines if not ready addresses should be evaluated to be discovered on startup.- Returns:
this
.
-
setKubernetesMaster
Defines an alternative address for the kubernetes master. Defaults to:https://kubernetes.default.svc
- Returns:
this
.
-
setApiToken
Defines an oauth token for the kubernetes client to access the kubernetes REST API. Defaults to reading the token from the auto-injected file at:/var/run/secrets/kubernetes.io/serviceaccount/token
.- Returns:
this
.
-
setPodLabelName
Defines the pod label to lookup through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setPodLabelValue
Defines the pod label value to lookup through the Service Discovery REST API of Kubernetes.- Returns:
this
.
-
setUseNodeNameAsExternalAddress
public HazelcastKubernetesDiscoveryProperties setUseNodeNameAsExternalAddress(boolean useNodeNameAsExternalAddress) Defines if the node name should be used as external address, instead of looking up the external IP using the/nodes
resource. Default is false.- Returns:
this
.
-
setApiRetries
Defines the number of retries to Kubernetes API. Defaults to: 3.- Returns:
this
.
-
setCaCertificate
CA Authority certificate from Kubernetes Master. Defaults to reading the certificate from the auto-injected file at:/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
.- Returns:
this
.
-
setServicePort
If specified with a value greater than 0, its value defines the endpoint port of the service (overriding the default).- Returns:
this
.
-