public final class KubernetesProperties extends Object
Configuration class of the Hazelcast Discovery Plugin for Kubernetes.
For possible configuration properties please refer to the public constants of this class.
| Modifier and Type | Field and Description |
|---|---|
static com.hazelcast.config.properties.PropertyDefinition |
KUBERNETES_API_RETIRES
Configuration key: kubernetes-api-retries
|
static com.hazelcast.config.properties.PropertyDefinition |
KUBERNETES_API_TOKEN
Configuration key: api-token
|
static com.hazelcast.config.properties.PropertyDefinition |
KUBERNETES_CA_CERTIFICATE
Configuration key: ca-certificate
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
|
static com.hazelcast.config.properties.PropertyDefinition |
KUBERNETES_MASTER_URL
Configuration key: kubernetes-master
|
static String |
KUBERNETES_SYSTEM_PREFIX
Configuration System Environment Prefix: hazelcast.kubernetes.
|
static com.hazelcast.config.properties.PropertyDefinition |
NAMESPACE
Configuration key: namespace
|
static com.hazelcast.config.properties.PropertyDefinition |
POD_LABEL_NAME
Configuration key: pod-label-name
|
static com.hazelcast.config.properties.PropertyDefinition |
POD_LABEL_VALUE
Configuration key: pod-label-value
|
static com.hazelcast.config.properties.PropertyDefinition |
RESOLVE_NOT_READY_ADDRESSES
Configuration key: resolve-not-ready-addresses
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_DNS
Configuration key: service-dns
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_DNS_TIMEOUT
Configuration key: service-dns-timeout
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_LABEL_NAME
Configuration key: service-label-name
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_LABEL_VALUE
Configuration key: service-label-value
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_NAME
Configuration key: service-name
|
static com.hazelcast.config.properties.PropertyDefinition |
SERVICE_PORT
Configuration key: service-port
|
static com.hazelcast.config.properties.PropertyDefinition |
USE_NODE_NAME_AS_EXTERNAL_ADDRESS
Configuration key: use-node-name-as-external-address
|
public static final String KUBERNETES_SYSTEM_PREFIX
Configuration System Environment Prefix: hazelcast.kubernetes.
Defines the prefix for system environment variables and JVM command line parameters.SERVICE_DNS will be:
-Dhazelcast.kubernetes.service-dns=value
For kubernetes and openshift there is a special rule where the environment variables are
provided in C-identifier style, therefore the prefix is converted to uppercase and dots
and dashed will be replaced with underscores:
HAZELCAST_KUBERNETES_SERVICE_DNS=value
public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_DNS
Configuration key: service-dns
Defines the DNS service lookup domain. This is defined as something similar to my-svc.my-namespace.svc.cluster.local.public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_DNS_TIMEOUT
Configuration key: service-dns-timeout
Defines the DNS service lookup timeout in seconds. Defaults to: 5 secs.public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_NAME
Configuration key: service-name
Defines the service name of the POD to lookup through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_LABEL_NAME
Configuration key: service-label-name
Defines the service label to lookup through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_LABEL_VALUE
Configuration key: service-label-value
Defines the service label value to lookup through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition NAMESPACE
Configuration key: namespace
Defines the namespace of the application POD through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition POD_LABEL_NAME
Configuration key: pod-label-name
Defines the pod label to lookup through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition POD_LABEL_VALUE
Configuration key: pod-label-value
Defines the pod label value to lookup through the Service Discovery REST API of Kubernetes.public static final com.hazelcast.config.properties.PropertyDefinition RESOLVE_NOT_READY_ADDRESSES
Configuration key: resolve-not-ready-addresses
Defines if not ready addresses should be evaluated to be discovered on startup.public static final com.hazelcast.config.properties.PropertyDefinition USE_NODE_NAME_AS_EXTERNAL_ADDRESS
Configuration key: use-node-name-as-external-address
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.public static final com.hazelcast.config.properties.PropertyDefinition KUBERNETES_API_RETIRES
Configuration key: kubernetes-api-retries
Defines the number of retries to Kubernetes API. Defaults to: 3.public static final com.hazelcast.config.properties.PropertyDefinition KUBERNETES_MASTER_URL
Configuration key: kubernetes-master
Defines an alternative address for the kubernetes master. Defaults to: https://kubernetes.default.svcpublic static final com.hazelcast.config.properties.PropertyDefinition KUBERNETES_API_TOKEN
Configuration key: api-token
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/tokenpublic static final com.hazelcast.config.properties.PropertyDefinition KUBERNETES_CA_CERTIFICATE
public static final com.hazelcast.config.properties.PropertyDefinition SERVICE_PORT
Configuration key: service-port
If specified with a value greater than 0, its value defines the endpoint port of the service (overriding the default).Copyright © 2015-2019. All Rights Reserved.