public class DefaultContainerFactory extends Object implements ContainerFactory
Container
that will be started as part of a
Kubernetes Pod by using the default Spring Cloud Module Launcher
approach that pulls the required module from a Maven repository.Modifier and Type | Field and Description |
---|---|
protected KubernetesModuleDeployerProperties |
properties |
Constructor and Description |
---|
DefaultContainerFactory() |
Modifier and Type | Method and Description |
---|---|
protected String |
bashEscape(String original) |
io.fabric8.kubernetes.api.model.Container |
create(org.springframework.cloud.dataflow.core.ModuleDeploymentRequest request,
int port) |
protected List<String> |
createCommandArgs(org.springframework.cloud.dataflow.core.ModuleDeploymentRequest request) |
protected io.fabric8.kubernetes.api.model.Probe |
createProbe(Integer externalPort,
long timeout,
long initialDelay)
Create a readiness probe for the /health endpoint exposed by each module.
|
protected String |
deduceImageName(org.springframework.cloud.dataflow.core.ModuleDeploymentRequest request) |
@Autowired protected KubernetesModuleDeployerProperties properties
public io.fabric8.kubernetes.api.model.Container create(org.springframework.cloud.dataflow.core.ModuleDeploymentRequest request, int port)
create
in interface ContainerFactory
protected String deduceImageName(org.springframework.cloud.dataflow.core.ModuleDeploymentRequest request)
protected io.fabric8.kubernetes.api.model.Probe createProbe(Integer externalPort, long timeout, long initialDelay)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.