apiPrefix=flag.String("api_prefix","/api","The prefix for API requests on the server. Default '/api'.")
apiPrefix=flag.String("api_prefix","/api","The prefix for API requests on the server. Default '/api'.")
storageVersion=flag.String("storage_version","","The version to store resources with. Defaults to server preferred")
storageVersion=flag.String("storage_version","","The version to store resources with. Defaults to server preferred")
cloudProvider=flag.String("cloud_provider","","The provider for cloud services. Empty string for no provider.")
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.")
cloudConfigFile=flag.String("cloud_config","","The path to the cloud provider configuration file. Empty string for no configuration file.")
healthCheckMinions=flag.Bool("health_check_minions",true,"If true, health check minions and filter unhealthy ones. Default true.")
healthCheckMinions=flag.Bool("health_check_minions",true,"If true, health check minions and filter unhealthy ones. Default true.")
eventTTL=flag.Duration("event_ttl",48*time.Hour,"Amount of time to retain events. Default 2 days.")
eventTTL=flag.Duration("event_ttl",48*time.Hour,"Amount of time to retain events. Default 2 days.")
tokenAuthFile=flag.String("token_auth_file","","If set, the file that will be used to secure the API server via token authentication.")
tokenAuthFile=flag.String("token_auth_file","","If set, the file that will be used to secure the secure port of the API server via token authentication.")
authorizationMode=flag.String("authorization_mode","AlwaysAllow","Selects how to do authorization. One of: "+strings.Join(apiserver.AuthorizationModeChoices,","))
authorizationMode=flag.String("authorization_mode","AlwaysAllow","Selects how to do authorization on the secure port. One of: "+strings.Join(apiserver.AuthorizationModeChoices,","))
authorizationPolicyFile=flag.String("authorization_policy_file","","File with authorization policy in csv format, used with --authorization_mode=ABAC.")
authorizationPolicyFile=flag.String("authorization_policy_file","","File with authorization policy in csv format, used with --authorization_mode=ABAC, on the secure port.")
etcdServerListutil.StringList
etcdServerListutil.StringList
etcdConfigFile=flag.String("etcd_config","","The config file for the etcd client. Mutually exclusive with -etcd_servers.")
etcdConfigFile=flag.String("etcd_config","","The config file for the etcd client. Mutually exclusive with -etcd_servers.")
corsAllowedOriginListutil.StringList
corsAllowedOriginListutil.StringList
...
@@ -172,10 +175,15 @@ func main() {
...
@@ -172,10 +175,15 @@ func main() {
}
}
m:=master.New(config)
m:=master.New(config)
// We serve on 3 ports. See docs/reaching_the_api.md