Documentation
¶
Overview ¶
Package options provides the flags used for the controller manager.
CAUTION: If you update code in this file, you may need to also update code
in contrib/mesos/pkg/controllermanager/controllermanager.go
Index ¶
Constants ¶
View Source
const ArchonControllerName = "archon-controller"
Used in leader election
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchonControllerManagerConfiguration ¶
type ArchonControllerManagerConfiguration struct {
metav1.TypeMeta
// port is the port that the controller-manager's http service runs on.
Port int32 `json:"port"`
// address is the IP address to serve on (set to 0.0.0.0 for all interfaces).
Address string `json:"address"`
// cloudProvider is the provider for cloud services.
CloudProvider string `json:"cloudProvider"`
// cloudConfigFile is the path to the cloud provider configuration file.
CloudConfigFile string `json:"cloudConfigFile"`
// minResyncPeriod is the resync period in reflectors; will be random between
// minResyncPeriod and 2*minResyncPeriod.
MinResyncPeriod metav1.Duration `json:"minResyncPeriod"`
ClusterSigningCertFile string `json:"clusterSigningCertFile"`
// clusterSigningCertFile is the filename containing a PEM-encoded
// RSA or ECDSA private key used to issue cluster-scoped certificates
ClusterSigningKeyFile string `json:"clusterSigningKeyFile"`
// clusterName is the instance prefix for the cluster.
ClusterName string `json:"clusterName"`
// leaderElection defines the configuration of leader election client.
LeaderElection componentconfig.LeaderElectionConfiguration `json:"leaderElection"`
// enableProfiling enables profiling via web interface host:port/debug/pprof/
EnableProfiling bool `json:"enableProfiling"`
// contentType is contentType of requests sent to apiserver.
ContentType string `json:"contentType"`
// kubeAPIQPS is the QPS to use while talking with kubernetes apiserver.
KubeAPIQPS float32 `json:"kubeAPIQPS"`
// kubeAPIBurst is the burst to use while talking with kubernetes apiserver.
KubeAPIBurst int32 `json:"kubeAPIBurst"`
// How long to wait between starting controller managers
ControllerStartInterval metav1.Duration `json:"controllerStartInterval"`
// enables the generic garbage collector. MUST be synced with the
// corresponding flag of the kube-apiserver. WARNING: the generic garbage
// collector is an alpha feature.
EnableGarbageCollector bool `json:"enableGarbageCollector"`
TestRun bool
// Localkube stuff
EnableLocalkube bool `json:"enableLocalkube"`
APIServerAddress net.IP `json:"apiServerAddress"`
APIServerPort int `json:"apiServerPort"`
APIServerInsecureAddress net.IP `json:"apiServerInsecureAddress"`
APIServerInsecurePort int `json:"apiServerInsecurePort"`
LocalkubeDirectory string `json:"localkubeDirectory"`
}
type CMServer ¶
type CMServer struct {
ArchonControllerManagerConfiguration
Master string
Kubeconfig string
Namespace string
ControllerName string
}
CMServer is the main context object for the controller manager.
func NewCMServer ¶
func NewCMServer() *CMServer
NewCMServer creates a new CMServer with a default config.
Click to show internal directories.
Click to hide internal directories.