Documentation
¶
Overview ¶
Package config contains Node Agent configuration management
Index ¶
Constants ¶
View Source
const AccessToken = "access_token"
View Source
const CLUSTER_DETECTION_DEFAULT = 30
View Source
const HEARTBEAT_DEFAULT = 10
View Source
const HostCert = "host-cert.pem"
View Source
const HostKey = "host-key.pem"
View Source
const K3S_DEFAULT_BINARY_PATH = "/var/lib/rancher/k3s/bin/k3s"
Kubernetes cluster configuration
View Source
const NodeAgentCert = "node-agent.pem"
View Source
const NodeAgentKey = "node-agent-key.pem"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterType ¶ added in v1.11.1
type ConfigAuth ¶
type ConfigCluster ¶ added in v1.11.1
type ConfigCluster struct {
DetectionEnabled bool `yaml:"detectionEnabled"`
DetectionInterval time.Duration `yaml:"detectionInterval"`
ClusterType ClusterType `yaml:"clusterType"`
}
type ConfigMetrics ¶ added in v1.10.0
type ConfigOnboarding ¶
type ConfigStatus ¶
type NetworkEndpoint ¶
type NodeAgentConfig ¶
type NodeAgentConfig struct {
Version string `yaml:"version"`
LogLevel string `yaml:"logLevel"`
GUID string `yaml:"GUID"`
Onboarding ConfigOnboarding `yaml:"onboarding"`
Auth ConfigAuth `yaml:"auth"`
Status ConfigStatus `yaml:"status"`
Metrics ConfigMetrics `yaml:"metrics"`
Cluster ConfigCluster `yaml:"cluster"`
}
func New ¶
func New(cfgPath string) (*NodeAgentConfig, error)
Create a new Node agent configuration.
Click to show internal directories.
Click to hide internal directories.