Documentation
¶
Overview ¶
Package app does all of the work necessary to configure and run a Kubernetes app process.
Package app does all of the work necessary to configure and run a Kubernetes app process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyCommand ¶
NewProxyCommand creates a *cobra.Command object with default parameters
Types ¶
type Conntracker ¶
type Conntracker interface { // SetMax adjusts nf_conntrack_max. SetMax(max int) error // SetTCPEstablishedTimeout adjusts nf_conntrack_tcp_timeout_established. SetTCPEstablishedTimeout(seconds int) error // SetTCPCloseWaitTimeout nf_conntrack_tcp_timeout_close_wait. SetTCPCloseWaitTimeout(seconds int) error }
Conntracker is an interface to the global sysctl. Descriptions of the various sysctl fields can be found here:
https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.txt
type Options ¶
type Options struct { // ConfigFile is the location of the proxy server's configuration file. ConfigFile string // WriteConfigTo is the path where the default configuration will be written. WriteConfigTo string // CleanupAndExit, when true, makes the proxy server clean up iptables and ipvs rules, then exit. CleanupAndExit bool // WindowsService should be set to true if kube-proxy is running as a service on Windows. // Its corresponding flag only gets registered in Windows builds WindowsService bool // contains filtered or unexported fields }
Options contains everything necessary to create and run a proxy server.
type ProxyServer ¶
type ProxyServer struct { Config *kubeproxyconfig.KubeProxyConfiguration Client clientset.Interface Broadcaster events.EventBroadcaster Recorder events.EventRecorder NodeRef *v1.ObjectReference HealthzServer healthcheck.ProxierHealthUpdater Hostname string PrimaryIPFamily v1.IPFamily NodeIPs map[v1.IPFamily]net.IP Proxier proxy.Provider // contains filtered or unexported fields }
ProxyServer represents all the parameters required to start the Kubernetes proxy server. All fields are required.
func (*ProxyServer) Run ¶
func (s *ProxyServer) Run() error
Run runs the specified ProxyServer. This should never exit (unless CleanupAndExit is set). TODO: At the moment, Run() cannot return a nil error, otherwise it's caller will never exit. Update callers of Run to handle nil errors.