public class KubernetesAppDeployer extends AbstractKubernetesDeployer implements org.springframework.cloud.deployer.spi.app.AppDeployer
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected static String |
STATEFUL_SET_IMAGE_NAME |
client, containerFactory, properties, SPRING_APP_KEY, SPRING_DEPLOYMENT_KEY, SPRING_GROUP_KEY, SPRING_MARKER_KEY, SPRING_MARKER_VALUE| Constructor and Description |
|---|
KubernetesAppDeployer(KubernetesDeployerProperties properties,
io.fabric8.kubernetes.client.KubernetesClient client) |
KubernetesAppDeployer(KubernetesDeployerProperties properties,
io.fabric8.kubernetes.client.KubernetesClient client,
ContainerFactory containerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
configureExternalPort(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
protected String |
createDeploymentId(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
protected void |
createService(String appId,
org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> idMap,
int externalPort) |
protected void |
createStatefulSet(String appId,
org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> idMap,
int externalPort)
Create a StatefulSet
|
String |
deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
protected Map<String,String> |
getDeploymentLabels(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
String |
getLog(String appId) |
void |
scale(org.springframework.cloud.deployer.spi.app.AppScaleRequest appScaleRequest) |
org.springframework.cloud.deployer.spi.app.AppStatus |
status(String appId) |
void |
undeploy(String appId) |
buildAppStatus, createIdMap, createPodSpec, createRuntimeEnvironmentInfo, deduceImagePullPolicy, deduceResourceLimits, deduceResourceRequests, getHostNetwork, getStatefulSetStorage, getStatefulSetStorageClassName, getVolumes, logPossibleDownloadResourceMessageprotected static final String STATEFUL_SET_IMAGE_NAME
protected final org.apache.commons.logging.Log logger
@Autowired public KubernetesAppDeployer(KubernetesDeployerProperties properties, io.fabric8.kubernetes.client.KubernetesClient client)
@Autowired public KubernetesAppDeployer(KubernetesDeployerProperties properties, io.fabric8.kubernetes.client.KubernetesClient client, ContainerFactory containerFactory)
public String deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
deploy in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic void undeploy(String appId)
undeploy in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic org.springframework.cloud.deployer.spi.app.AppStatus status(String appId)
status in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic String getLog(String appId)
getLog in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic void scale(org.springframework.cloud.deployer.spi.app.AppScaleRequest appScaleRequest)
scale in interface org.springframework.cloud.deployer.spi.app.AppDeployerpublic org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
environmentInfo in interface org.springframework.cloud.deployer.spi.app.AppDeployerprotected int configureExternalPort(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
protected String createDeploymentId(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
protected void createStatefulSet(String appId, org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> idMap, int externalPort)
appId - the application idrequest - the AppDeploymentRequestidMap - the map of labels to useexternalPort - the external port of the containerprotected void createService(String appId, org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> idMap, int externalPort)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.