cloudProvider=flag.String("cloud_provider","","The provider for cloud services. Empty string for no provider.")
cloudConfigFile=flag.String("cloud_config","","The path to the cloud provider configuration file. Empty string for no configuration file.")
minionRegexp=flag.String("minion_regexp","","If non empty, and -cloud_provider is specified, a regular expression for matching minion VMs.")
minionPort=flag.Uint("minion_port",10250,"The port at which kubelet will be listening on the minions.")
healthCheckMinions=flag.Bool("health_check_minions",true,"If true, health check minions and filter unhealthy ones. Default true.")
minionCacheTTL=flag.Duration("minion_cache_ttl",30*time.Second,"Duration of time to cache minion information. Default 30 seconds.")
eventTTL=flag.Duration("event_ttl",48*time.Hour,"Amount of time to retain events. Default 2 days.")
...
...
@@ -70,6 +69,10 @@ var (
nodeMilliCPU=flag.Int("node_milli_cpu",1000,"The amount of MilliCPU provisioned on each node")
nodeMemory=flag.Int("node_memory",3*1024*1024*1024,"The amount of memory (in bytes) provisioned on each node")
enableLogsSupport=flag.Bool("enable_logs_support",true,"Enables server endpoint for log collection")
kubeletConfig=client.KubeletConfig{
Port:10250,
EnableHttps:false,
}
)
funcinit(){
...
...
@@ -78,6 +81,7 @@ func init() {
flag.Var(&machineList,"machines","List of machines to schedule onto, comma separated.")
flag.Var(&corsAllowedOriginList,"cors_allowed_origins","List of allowed origins for CORS, comma separated. An allowed origin can be a regular expression to support subdomain matching. If this list is empty CORS will not be enabled.")
flag.Var(&portalNet,"portal_net","A CIDR notation IP range from which to assign portal IPs. This must not overlap with any IP ranges assigned to nodes for pods.")
flags.BoolVar(&config.Insecure,"insecure_skip_tls_verify",config.Insecure,"If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.")
flags.StringVar(&config.CertFile,"client_certificate",config.CertFile,"Path to a client key file for TLS.")
flags.StringVar(&config.KeyFile,"client_key",config.KeyFile,"Path to a client key file for TLS.")
flags.StringVar(&config.CAFile,"certificate_authority",config.CAFile,"Path to a cert. file for the certificate authority")
flags.StringVar(&config.CAFile,"certificate_authority",config.CAFile,"Path to a cert. file for the certificate authority.")