Class KubernetesDiscoveryOptions
- Namespace
- Steeltoe.Discovery.Kubernetes.Discovery
- Assembly
- Steeltoe.Discovery.Kubernetes.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class KubernetesDiscoveryOptions
- Inheritance
-
KubernetesDiscoveryOptions
- Inherited Members
Fields
KUBERNETES_DISCOVERY_CONFIGURATION_PREFIX
public const string KUBERNETES_DISCOVERY_CONFIGURATION_PREFIX = "spring:cloud:kubernetes:discovery"
Field Value
Properties
AllNamespaces
Gets or sets a value indicating whether the client is discovering all namespaces
public bool AllNamespaces { get; set; }
Property Value
CacheTTL
Gets or sets the time in seconds that service instance cache records should remain active
public int CacheTTL { get; set; }
Property Value
Remarks
configuration property: eureka:client:cacheTTL
Enabled
Gets or sets a value indicating whether service discovery by Kubernetes API is enabled
public bool Enabled { get; set; }
Property Value
KnownSecurePorts
Gets or sets a list of port numbers that are considered secure and use HTTPS
public List<int> KnownSecurePorts { get; set; }
Property Value
Metadata
Gets or sets additional service data
public Metadata Metadata { get; set; }
Property Value
Namespace
Gets or sets a value representing the namespace the service is being deployed to.
If AllNamespaces = false, will only discover services in this namespace;
If AllNamespaces = true, this + ServiceName is used to identify the local service instance
public string Namespace { get; set; }
Property Value
PrimaryPortName
Gets or sets a value holding the name of the primary port when multiple ports are defined for a service
public string PrimaryPortName { get; set; }
Property Value
ServiceLabels
Gets or sets a list of labels to filter on when fetching services from the Kubernetes API
public Dictionary<string, string> ServiceLabels { get; set; }
Property Value
ServiceName
Gets or sets a value representing the service name of the local instance
public string ServiceName { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.