public class DefaultContainerFactory extends Object implements ContainerFactory
Container
that will be started as part of a
Kubernetes Pod by launching the specified Docker image.Constructor and Description |
---|
DefaultContainerFactory(KubernetesDeployerProperties properties) |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.api.model.Container |
create(String appId,
org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Integer port) |
protected List<String> |
createCommandArgs(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
Create command arguments
|
protected io.fabric8.kubernetes.api.model.Probe |
createProbe(Integer externalPort,
String endpoint,
int timeout,
int initialDelay,
int period)
Create a readiness probe for the /health endpoint exposed by each module.
|
public DefaultContainerFactory(KubernetesDeployerProperties properties)
public io.fabric8.kubernetes.api.model.Container create(String appId, org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Integer port)
create
in interface ContainerFactory
protected io.fabric8.kubernetes.api.model.Probe createProbe(Integer externalPort, String endpoint, int timeout, int initialDelay, int period)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.