factory = new KubernetesFactory("http://localhost:8585/");
} else {
factory = new KubernetesFactory(kubernetesMaster);
}
contextPathsCache = new ArrayList<String>();
client = new KubernetesClient(factory);
//for now simply check in with kubernetes every 5 seconds
//it'd be nice if kubernetes can callback into our cache.
serviceCacheExecutor.scheduleWithFixedDelay(this, 0, 5, SECONDS);
}