Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeProblemDetectorOptions ¶
type NodeProblemDetectorOptions struct { // PrintVersion is the flag determining whether version information is printed. PrintVersion bool // HostnameOverride specifies custom node name used to override hostname. HostnameOverride string // ServerPort is the port to bind the node problem detector server. Use 0 to disable. ServerPort int // ServerAddress is the address to bind the node problem detector server. ServerAddress string // k8sExporter options // EnableK8sExporter is the flag determining whether to report to Kubernetes. EnableK8sExporter bool // EventNamespace is the namespace events are written to EventNamespace string // ApiServerOverride is the custom URI used to connect to Kubernetes ApiServer. ApiServerOverride string // APIServerWaitTimeout is the timeout on waiting for kube-apiserver to be // ready. APIServerWaitTimeout time.Duration // APIServerWaitInterval is the interval between the checks on the // readiness of kube-apiserver. APIServerWaitInterval time.Duration // K8sExporterHeartbeatPeriod is the period at which the k8s exporter does forcibly sync with apiserver. K8sExporterHeartbeatPeriod time.Duration // prometheusExporter options // PrometheusServerPort is the port to bind the Prometheus scrape endpoint. Use 0 to disable. PrometheusServerPort int // PrometheusServerAddress is the address to bind the Prometheus scrape endpoint. PrometheusServerAddress string // SystemLogMonitorConfigPaths specifies the list of paths to system log monitor configuration // files. // SystemLogMonitorConfigPaths is used by the deprecated option --system-log-monitors. The new // option --config.system-log-monitor will stored the config file paths in MonitorConfigPaths. SystemLogMonitorConfigPaths []string // CustomPluginMonitorConfigPaths specifies the list of paths to custom plugin monitor configuration // files. // CustomPluginMonitorConfigPaths is used by the deprecated option --custom-plugin-monitors. The // new option --config.custom-plugin-monitor will stored the config file paths in MonitorConfigPaths. CustomPluginMonitorConfigPaths []string // MonitorConfigPaths specifies the list of paths to configuration files for each monitor. MonitorConfigPaths types.ProblemDaemonConfigPathMap // NodeName is the node name used to communicate with Kubernetes ApiServer. NodeName string }
NodeProblemDetectorOptions contains node problem detector command line and application options.
func NewNodeProblemDetectorOptions ¶
func NewNodeProblemDetectorOptions() *NodeProblemDetectorOptions
func (*NodeProblemDetectorOptions) AddFlags ¶
func (npdo *NodeProblemDetectorOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds node problem detector command line options to pflag.
func (*NodeProblemDetectorOptions) SetConfigFromDeprecatedOptionsOrDie ¶ added in v0.7.0
func (npdo *NodeProblemDetectorOptions) SetConfigFromDeprecatedOptionsOrDie()
SetConfigFromDeprecatedOptionsOrDie sets NPD option using deprecated options.
func (*NodeProblemDetectorOptions) SetNodeNameOrDie ¶
func (npdo *NodeProblemDetectorOptions) SetNodeNameOrDie()
SetNodeNameOrDie sets `NodeName` field with valid value.
func (*NodeProblemDetectorOptions) ValidOrDie ¶
func (npdo *NodeProblemDetectorOptions) ValidOrDie()
ValidOrDie validates node problem detector command line options.
Click to show internal directories.
Click to hide internal directories.