// TODO: Discover these by pinging the host machines, and rip out these flags.
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")
...
...
@@ -75,6 +76,7 @@ func init() {
flag.Var(&etcdServerList,"etcd_servers","List of etcd servers to watch (http://ip:port), comma separated. Mutually exclusive with -etcd_config")
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.")
}
funcverifyMinionFlags(){
...
...
@@ -89,6 +91,13 @@ func verifyMinionFlags() {
}
}
// TODO: Longer term we should read this from some config store, rather than a flag.
flag.Var(&etcdServerList,"etcd_servers","List of etcd servers to watch (http://ip:port), comma separated (optional). Mutually exclusive with -etcd_config")
flag.Var(&bindAddress,"bind_address","The address for the proxy server to serve on (set to 0.0.0.0 for all interfaces)")
flag.Var(&bindAddress,"bind_address","The IP address for the proxy server to serve on (set to 0.0.0.0 for all interfaces)")
The redis slave configures itself by looking for the Kubernetes service environment variables in the container environment. In particular, the redis slave is started with the following command: