Class KubernetesDiscoveryOptions
Inheritance
Namespace: Steeltoe.Discovery.Kubernetes.Discovery
Assembly: Steeltoe.Discovery.Kubernetes.dll
Syntax
public class KubernetesDiscoveryOptions : object
Fields
| Edit this page View SourceKUBERNETES_DISCOVERY_CONFIGURATION_PREFIX
Declaration
public const string KUBERNETES_DISCOVERY_CONFIGURATION_PREFIX = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Edit this page View SourceAllNamespaces
Gets or sets a value indicating whether the client is discovering all namespaces
Declaration
public bool AllNamespaces { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CacheTTL
Gets or sets the time in seconds that service instance cache records should remain active
Declaration
public int CacheTTL { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
configuration property: eureka:client:cacheTTL
Enabled
Gets or sets a value indicating whether service discovery by Kubernetes API is enabled
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
KnownSecurePorts
Gets or sets a list of port numbers that are considered secure and use HTTPS
Declaration
public List<int> KnownSecurePorts { get; set; }
Property Value
Type | Description |
---|---|
List<System.Int32> |
Metadata
Gets or sets additional service data
Declaration
public Metadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
Metadata |
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 instanceDeclaration
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrimaryPortName
Gets or sets a value holding the name of the primary port when multiple ports are defined for a service
Declaration
public string PrimaryPortName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ServiceLabels
Gets or sets a list of labels to filter on when fetching services from the Kubernetes API
Declaration
public Dictionary<string, string> ServiceLabels { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> |
ServiceName
Gets or sets a value representing the service name of the local instance
Declaration
public string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |