Package io.quarkus.kubernetes.deployment
Class ContainerConfig
- java.lang.Object
-
- io.quarkus.kubernetes.deployment.ContainerConfig
-
- All Implemented Interfaces:
EnvVarHolder
public class ContainerConfig extends Object implements EnvVarHolder
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<List<String>>argumentsThe arguments(package private) Optional<List<String>>commandThe commands(package private) EnvVarsConfigenvEnvironment variables to add to all containers.(package private) Map<String,EnvConfig>envVarsDeprecated.Useenvinstead using the new syntax as follows:quarkus.kubernetes.env-vars.foo.field=fieldNamebecomesquarkus.kubernetes.env.fields.foo=fieldNamequarkus.kubernetes.env-vars.envvar.value=valuebecomesquarkus.kubernetes.env.vars.envvar=valuequarkus.kubernetes.env-vars.bar.configmap=configNamebecomesquarkus.kubernetes.env.configmaps=configNamequarkus.kubernetes.env-vars.baz.secret=secretNamebecomesquarkus.kubernetes.env.secrets=secretName(package private) Optional<String>hostThe host under which the application is going to be exposed.(package private) Optional<String>imageThe container image.(package private) io.dekorate.kubernetes.annotation.ImagePullPolicyimagePullPolicyImage pull policy.(package private) Optional<List<String>>imagePullSecretsThe image pull secret(package private) ProbeConfiglivenessProbeThe liveness probe.(package private) Map<String,MountConfig>mountsVolume mounts.(package private) Map<String,PortConfig>portsThe application ports.(package private) ProbeConfigreadinessProbeThe readiness probe.(package private) Optional<String>serviceAccountThe service account.(package private) Optional<String>workingDirWorking directory.
-
Constructor Summary
Constructors Constructor Description ContainerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<io.dekorate.kubernetes.config.Env>convertToEnvs()EnvVarsConfiggetEnv()Retrieves the definition of environment variables to add to the application's container.Map<String,EnvConfig>getEnvVars()Deprecated.usegetEnv()insteadStringgetTargetPlatformName()Specifies which the name of the platform this EnvVarHolder targets.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.kubernetes.deployment.EnvVarHolder
convertToBuildItems
-
-
-
-
Field Detail
-
ports
@ConfigItem Map<String,PortConfig> ports
The application ports.
-
imagePullPolicy
@ConfigItem(defaultValue="Always") io.dekorate.kubernetes.annotation.ImagePullPolicy imagePullPolicy
Image pull policy.
-
livenessProbe
@ConfigItem ProbeConfig livenessProbe
The liveness probe.
-
readinessProbe
@ConfigItem ProbeConfig readinessProbe
The readiness probe.
-
mounts
@ConfigItem Map<String,MountConfig> mounts
Volume mounts.
-
envVars
@ConfigItem @Deprecated Map<String,EnvConfig> envVars
Deprecated.Useenvinstead using the new syntax as follows:quarkus.kubernetes.env-vars.foo.field=fieldNamebecomesquarkus.kubernetes.env.fields.foo=fieldNamequarkus.kubernetes.env-vars.envvar.value=valuebecomesquarkus.kubernetes.env.vars.envvar=valuequarkus.kubernetes.env-vars.bar.configmap=configNamebecomesquarkus.kubernetes.env.configmaps=configNamequarkus.kubernetes.env-vars.baz.secret=secretNamebecomesquarkus.kubernetes.env.secrets=secretName
Environment variables to add to all containers using the old syntax.
-
env
@ConfigItem EnvVarsConfig env
Environment variables to add to all containers.
-
-
Method Detail
-
getEnvVars
@Deprecated public Map<String,EnvConfig> getEnvVars()
Deprecated.usegetEnv()instead- Specified by:
getEnvVarsin interfaceEnvVarHolder
-
getEnv
public EnvVarsConfig getEnv()
Description copied from interface:EnvVarHolderRetrieves the definition of environment variables to add to the application's container.- Specified by:
getEnvin interfaceEnvVarHolder- Returns:
- the associated
EnvVarsConfigholding the definition of which environment variables to add
-
getTargetPlatformName
public String getTargetPlatformName()
Description copied from interface:EnvVarHolderSpecifies which the name of the platform this EnvVarHolder targets. This name, when needed, is used by dekorate to generate the descriptor associated with the targeted deployment platform.- Specified by:
getTargetPlatformNamein interfaceEnvVarHolder- Returns:
- the name of the targeted platform e.g.
Constants.KUBERNETES
-
convertToEnvs
public Collection<io.dekorate.kubernetes.config.Env> convertToEnvs()
-
-