Name a cluster and use it to make forwarding rules for GCE

This commit is contained in:
Satnam Singh
2015-02-13 14:58:42 -08:00
committed by Satnam Singh
parent 9936f09b78
commit 19b927ea57
14 changed files with 59 additions and 36 deletions

View File

@@ -113,6 +113,9 @@ type Config struct {
// Control the interval that pod, node IP, and node heath status caches
// expire.
CacheTimeout time.Duration
// The name of the cluster.
ClusterName string
}
// Master contains state for a Kubernetes cluster master/api server.
@@ -403,7 +406,7 @@ func (m *Master) init(c *Config) {
"bindings": bindingStorage,
"replicationControllers": controller.NewREST(registry, podRegistry),
"services": service.NewREST(m.serviceRegistry, c.Cloud, m.nodeRegistry, m.portalNet),
"services": service.NewREST(m.serviceRegistry, c.Cloud, m.nodeRegistry, m.portalNet, c.ClusterName),
"endpoints": endpoint.NewREST(m.endpointRegistry),
"minions": nodeStorage,
"nodes": nodeStorage,