Documentation
¶
Index ¶
Constants ¶
View Source
const ( DpServerAuthServiceAccountToken = "serviceAccountToken" DpServerAuthDpToken = "dpToken" DpServerAuthNone = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DpServerAuthConfig ¶
type DpServerAuthConfig struct { // Type of authentication. Available values: "serviceAccountToken", "dpToken", "none". // If empty, autoconfigured based on the environment - "serviceAccountToken" on Kubernetes, "dpToken" on Universal. Type string `yaml:"type" envconfig:"kuma_dp_server_auth_type"` }
Authentication configuration for Dataplane Server
func (*DpServerAuthConfig) Validate ¶
func (a *DpServerAuthConfig) Validate() error
type DpServerAuthType ¶
type DpServerAuthType string
type DpServerConfig ¶
type DpServerConfig struct { // Port of the DP Server Port int `yaml:"port" envconfig:"kuma_dp_server_port"` // TlsCertFile defines a path to a file with PEM-encoded TLS cert. If empty, autoconfigured from general.tlsCertFile TlsCertFile string `yaml:"tlsCertFile" envconfig:"kuma_dp_server_tls_cert_file"` // TlsKeyFile defines a path to a file with PEM-encoded TLS key. If empty, autoconfigured from general.tlsKeyFile TlsKeyFile string `yaml:"tlsKeyFile" envconfig:"kuma_dp_server_tls_key_file"` // Auth defines an authentication configuration for the DP Server Auth DpServerAuthConfig `yaml:"auth"` // Hds defines a Health Discovery Service configuration Hds *HdsConfig `yaml:"hds"` }
Dataplane Server configuration that servers API like Bootstrap/XDS/SDS.
func DefaultDpServerConfig ¶
func DefaultDpServerConfig() *DpServerConfig
func (*DpServerConfig) Sanitize ¶
func (a *DpServerConfig) Sanitize()
func (*DpServerConfig) Validate ¶
func (a *DpServerConfig) Validate() error
type HdsCheck ¶
type HdsCheck struct { // Timeout is a time to wait for a health check response. If the timeout is reached the // health check attempt will be considered a failure. Timeout time.Duration `yaml:"timeout" envconfig:"kuma_dp_server_hds_check_timeout"` // Interval between health checks. Interval time.Duration `yaml:"interval" envconfig:"kuma_dp_server_hds_check_interval"` // NoTrafficInterval is a special health check interval that is used when a cluster has // never had traffic routed to it. NoTrafficInterval time.Duration `yaml:"noTrafficInterval" envconfig:"kuma_dp_server_hds_check_no_traffic_interval"` // HealthyThreshold is a number of healthy health checks required before a host is marked // healthy. HealthyThreshold uint32 `yaml:"healthyThreshold" envconfig:"kuma_dp_server_hds_check_healthy_threshold"` // UnhealthyThreshold is a number of unhealthy health checks required before a host is marked // unhealthy. UnhealthyThreshold uint32 `yaml:"unhealthyThreshold" envconfig:"kuma_dp_server_hds_check_unhealthy_threshold"` }
type HdsConfig ¶
type HdsConfig struct { // Enabled if true then Envoy will actively check application's ports, but only on Universal. // On Kubernetes this feature disabled for now regardless the flag value Enabled bool `yaml:"enabled" envconfig:"kuma_dp_server_hds_enabled"` // Interval for Envoy to send statuses for HealthChecks Interval time.Duration `yaml:"interval" envconfig:"kuma_dp_server_hds_interval"` // RefreshInterval is an interval for re-genarting configuration for Dataplanes connected to the Control Plane RefreshInterval time.Duration `yaml:"refreshInterval" envconfig:"kuma_dp_server_hds_refresh_interval"` // CheckDefaults defines a HealthCheck configuration CheckDefaults *HdsCheck `yaml:"checkDefaults"` }
func DefaultHdsConfig ¶
func DefaultHdsConfig() *HdsConfig
Click to show internal directories.
Click to hide internal directories.