Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultSDConfig is the default Kubernetes SD configuration DefaultSDConfig = SDConfig{} )
Functions ¶
This section is empty.
Types ¶
type Discovery ¶ added in v1.6.0
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements the Discoverer interface for discovering targets from Kubernetes.
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
Endpoints discovers new endpoint targets.
func NewEndpoints ¶
func NewEndpoints(l log.Logger, svc, eps, pod cache.SharedInformer) *Endpoints
NewEndpoints returns a new endpoints discovery.
type Ingress ¶ added in v1.8.0
type Ingress struct {
// contains filtered or unexported fields
}
Ingress implements discovery of Kubernetes ingresss.
func NewIngress ¶ added in v1.8.0
func NewIngress(l log.Logger, inf cache.SharedInformer) *Ingress
NewIngress returns a new ingress discovery.
type NamespaceDiscovery ¶
type NamespaceDiscovery struct { Names []string `yaml:"names"` // Catches all undefined fields and must be empty after parsing. XXX map[string]interface{} `yaml:",inline"` }
NamespaceDiscovery is the configuration for discovering Kubernetes namespaces.
func (*NamespaceDiscovery) UnmarshalYAML ¶
func (c *NamespaceDiscovery) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node discovers Kubernetes nodes.
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
Pod discovers new pod targets.
type Role ¶
type Role string
Role is role of the service in Kubernetes.
const ( RoleNode Role = "node" RolePod Role = "pod" RoleService Role = "service" RoleEndpoint Role = "endpoints" RoleIngress Role = "ingress" )
The valid options for Role.
func (*Role) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type SDConfig ¶
type SDConfig struct { APIServer config_util.URL `yaml:"api_server"` Role Role `yaml:"role"` BasicAuth *config_util.BasicAuth `yaml:"basic_auth,omitempty"` BearerToken config_util.Secret `yaml:"bearer_token,omitempty"` BearerTokenFile string `yaml:"bearer_token_file,omitempty"` TLSConfig config_util.TLSConfig `yaml:"tls_config,omitempty"` NamespaceDiscovery NamespaceDiscovery `yaml:"namespaces"` // Catches all undefined fields and must be empty after parsing. XXX map[string]interface{} `yaml:",inline"` }
SDConfig is the configuration for Kubernetes service discovery.
func (*SDConfig) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements discovery of Kubernetes services.
func NewService ¶
func NewService(l log.Logger, inf cache.SharedInformer) *Service
NewService returns a new service discovery.