Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckOptions ¶
type HealthCheckOptions struct { HealthScheme string `json:"healthScheme" usage:"health check request scheme"` HealthPath string `json:"healthPath" usage:"health check path"` }
HealthCheckOptions health check scheme&path
type K8sConfig ¶
type K8sConfig struct { Master string `json:"master" usage:"kubernetes cluster master"` KubeConfig string `json:"kubeConfig" value:"" usage:""` }
K8sConfig master & KubeConfig
type ProxyAPIServerOptions ¶
type ProxyAPIServerOptions struct { conf.FileConfig conf.ServiceConfig conf.LogConfig conf.ProcessConfig DebugMode bool `json:"debugMode"` ProxyLvs ProxyLvs `json:"proxyLvs"` HealthCheck HealthCheckOptions `json:"healthCheck"` K8sConfig K8sConfig `json:"k8sConfig"` SystemInterval SystemInterval `json:"systemInterval"` RealServer RealServer `json:"realServer"` }
ProxyAPIServerOptions cmd option for bcs-apiserver-proxy
func NewProxyAPIServerOptions ¶
func NewProxyAPIServerOptions() *ProxyAPIServerOptions
NewProxyAPIServerOptions init ProxyAPIServerOptions
func (ProxyAPIServerOptions) Validate ¶
func (opt ProxyAPIServerOptions) Validate() bool
Validate check ProxyAPIServerOptions paras
type ProxyLvs ¶
type ProxyLvs struct {
VirtualAddress string `json:"virtualAddress" value:"127.0.0.1:6443" usage:"Proxy lvs address:port"`
}
ProxyLvs virtual server
type RealServer ¶
type RealServer struct {
RealAddress []string `json:"realServers" usage:"realServers init lvs address"`
}
RealServer vs backend rs
type SystemInterval ¶
type SystemInterval struct { EndpointInterval int64 `json:"endpointInterval" value:"5" usage:"dynamic update cluster endpointsIP interval"` ManagerInterval int64 `json:"managerInterval" value:"10" usage:"dynamic refresh ipvs rules interval"` }
SystemInterval ticker interval
Click to show internal directories.
Click to hide internal directories.