Documentation ¶
Index ¶
Constants ¶
View Source
const ( DummyIfCIDR = "169.254.0.0/16" ExclusiveCIDR = "169.254.31.0/24" )
Variables ¶
This section is empty.
Functions ¶
func ValidateOptions ¶
func ValidateOptions(options *YurtHubOptions) error
ValidateOptions validates YurtHubOptions
Types ¶
type YurtHubOptions ¶
type YurtHubOptions struct { ServerAddr string YurtHubHost string YurtHubPort string YurtHubProxyPort string YurtHubProxySecurePort string GCFrequency int CertMgrMode string KubeletRootCAFilePath string KubeletPairFilePath string NodeName string NodePoolName string LBMode string HeartbeatFailedRetry int HeartbeatHealthyThreshold int HeartbeatTimeoutSeconds int MaxRequestInFlight int JoinToken string RootDir string Version bool EnableProfiling bool EnableDummyIf bool EnableIptables bool HubAgentDummyIfIP string HubAgentDummyIfName string DiskCachePath string AccessServerThroughHub bool EnableResourceFilter bool DisabledResourceFilters []string WorkingMode string KubeletHealthGracePeriod time.Duration }
YurtHubOptions is the main settings for the yurthub
func NewYurtHubOptions ¶
func NewYurtHubOptions() *YurtHubOptions
NewYurtHubOptions creates a new YurtHubOptions with a default config.
func (*YurtHubOptions) AddFlags ¶
func (o *YurtHubOptions) AddFlags(fs *pflag.FlagSet)
AddFlags returns flags for a specific yurthub by section name
Click to show internal directories.
Click to hide internal directories.