Package io.quarkus.kubernetes.deployment
Class ContainerConfig
java.lang.Object
io.quarkus.kubernetes.deployment.ContainerConfig
- All Implemented Interfaces:
EnvVarHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe argumentsThe commands(package private) EnvVarsConfigEnvironment variables to add to all containers.Deprecated.The host under which the application is going to be exposed.The container image.(package private) io.dekorate.kubernetes.annotation.ImagePullPolicyImage pull policy.The image pull secret(package private) ProbeConfigThe liveness probe.(package private) Map<String,MountConfig> Volume mounts.(package private) Map<String,PortConfig> The application ports.(package private) ProbeConfigThe readiness probe.(package private) ResourcesConfigResources requirementsThe service account.Working directory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<io.dekorate.kubernetes.config.Env>getEnv()Retrieves the definition of environment variables to add to the application's container.Deprecated.usegetEnv()insteadSpecifies 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, waitMethods inherited from interface io.quarkus.kubernetes.deployment.EnvVarHolder
convertToBuildItems
-
Field Details
-
image
The container image. -
workingDir
Working directory. -
command
The commands -
arguments
The arguments -
serviceAccount
The service account. -
host
The host under which the application is going to be exposed. -
ports
The application ports. -
imagePullPolicy
@ConfigItem(defaultValue="Always") io.dekorate.kubernetes.annotation.ImagePullPolicy imagePullPolicyImage pull policy. -
imagePullSecrets
The image pull secret -
livenessProbe
The liveness probe. -
readinessProbe
The readiness probe. -
mounts
Volume mounts. -
resources
Resources requirements -
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
Environment variables to add to all containers.
-
-
Constructor Details
-
ContainerConfig
public ContainerConfig()
-
-
Method Details
-
getEnvVars
Deprecated.usegetEnv()instead- Specified by:
getEnvVarsin interfaceEnvVarHolder
-
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
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
-
envinstead 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