use of com.netflix.titus.master.eviction.service.EvictionServiceModule in project titus-control-plane by Netflix.
the class TitusMasterModule method configure.
@Override
protected void configure() {
// Configuration
bind(CellInfoResolver.class).to(ConfigurableCellInfoResolver.class);
// Titus supervisor
install(new SupervisorServiceModule());
install(new SupervisorEndpointModule());
install(new TitusEntitySanitizerModule());
// Feature flags
install(new FeatureFlagModule());
// Kubernetes
Preconditions.checkNotNull(mode, "Kube mode not set");
if (mode == Mode.KUBE) {
install(new KubeModule());
} else if (mode == Mode.EMBEDDED_KUBE) {
install(new KubeControllerModule());
install(new KubePodModule());
}
// Storage
install(new StoreModule());
// Service
install(new AuditModule());
install(new SchedulerModule());
install(new V3JobManagerModule());
install(new ContainerHealthServiceModule());
Multibinder.newSetBinder(binder(), ContainerHealthService.class).addBinding().to(AlwaysHealthyContainerHealthService.class);
install(new ManagementModule());
// REST/GRPC
bind(V3EndpointModule.V3_LOG_STORAGE_INFO).toInstance(EmptyLogStorageInfo.INSTANCE);
bind(ContextResolver.class).toInstance(EmptyContextResolver.INSTANCE);
if (enableREST) {
install(new GovernatorJerseySupportModule());
// This should be in JerseyModule, but overrides get broken if we do that (possibly Governator bug).
bind(HttpCallerIdResolver.class).to(ByRemoteAddressHttpCallerIdResolver.class);
bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
install(new JerseyModule());
}
install(new JobCoordinatorAdmissionModule());
install(new MasterEndpointModule());
install(new HealthModule());
install(new V3EndpointModule());
install(new AutoScalingModule());
install(new LoadBalancerModule());
install(new EvictionServiceModule());
install(new EvictionEndpointModule());
}
Aggregations