Package io.quarkus.kubernetes.deployment
Interface KubernetesConfig
- All Superinterfaces:
EnvVarHolder,PlatformConfiguration
@ConfigMapping(prefix="quarkus.kubernetes")
@ConfigRoot(phase=BUILD_TIME)
public interface KubernetesConfig
extends PlatformConfiguration
Kubernetes
-
Method Summary
Modifier and TypeMethodDescriptioncronJob()CronJob configuration.booleandeploy()If set to true, Quarkus will attempt to deploy the application to the target Kubernetes clusterThe kind of the deployment resource to use.The target deployment platform.io.quarkus.kubernetes.spi.DeployStrategyIf deploy is enabled, it will follow this strategy to update the resources to the target Kubernetes cluster.booleanDeprecated, for removal: This API element is subject to removal in a future version.default DeploymentResourceKindgetDeploymentResourceKind(io.quarkus.deployment.Capabilities capabilities) ingress()Ingress configurationDefault Init tasks configuration.Init tasks configuration.job()Job configuration.nodePort()The nodePort to set when serviceType is set to node-port.Optionally set directory generated Kubernetes resources will be written to.Debug configuration to be set in pods.replicas()The number of desired podsSpecifies rolling update configuration.io.dekorate.kubernetes.config.DeploymentStrategystrategy()Specifies the deployment strategy.default StringSpecifies which the name of the platform this EnvVarHolder targets.Methods inherited from interface io.quarkus.kubernetes.deployment.EnvVarHolder
convertToBuildItems, env, envVarsMethods inherited from interface io.quarkus.kubernetes.deployment.PlatformConfiguration
addBuildTimestamp, addNameToLabelSelectors, addVersionToLabelSelectors, annotations, appConfigMap, appSecret, arguments, awsElasticBlockStoreVolumes, azureDiskVolumes, azureFileVolumes, command, configMapVolumes, containerName, emptyDirVolumes, generateImagePullSecret, getSidecars, gitRepoVolumes, hostAliases, idempotent, imagePullPolicy, imagePullSecrets, initContainers, labels, livenessProbe, mounts, name, namespace, nodeSelector, partOf, ports, prometheus, pvcVolumes, rbac, readinessProbe, resources, secretVolumes, securityContext, serviceAccount, serviceType, sidecars, startupProbe, vcsUri, version, workingDir
-
Method Details
-
targetPlatformName
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:
targetPlatformNamein interfaceEnvVarHolder- Returns:
- the name of the targeted platform e.g.
Constants.KUBERNETES
-
deploymentKind
Optional<DeploymentResourceKind> deploymentKind()The kind of the deployment resource to use. Supported values are 'StatefulSet', 'Job', 'CronJob' and 'Deployment' defaulting to the latter. -
deploymentTarget
The target deployment platform. Defaults to kubernetes. Can be kubernetes, openshift, knative, minikube etc., or any combination of the above as comma separated list. -
strategy
@WithDefault("None") io.dekorate.kubernetes.config.DeploymentStrategy strategy()Specifies the deployment strategy. -
rollingUpdate
RollingUpdateConfig rollingUpdate()Specifies rolling update configuration. The configuration is applied when DeploymentStrategy == RollingUpdate, or when explicit configuration has been provided. In the later case RollingUpdate is assumed. -
replicas
The number of desired pods -
nodePort
OptionalInt nodePort()The nodePort to set when serviceType is set to node-port. -
ingress
IngressConfig ingress()Ingress configuration -
job
JobConfig job()Job configuration. It's only used if and only ifquarkus.kubernetes.deployment-kindis `Job`. -
cronJob
CronJobConfig cronJob()CronJob configuration. It's only used if and only ifquarkus.kubernetes.deployment-kindis `CronJob`. -
remoteDebug
DebugConfig remoteDebug()Debug configuration to be set in pods. -
externalizeInit
Deprecated, for removal: This API element is subject to removal in a future version.useinitTasks()configuration insteadFlag to enable init task externalization. When enabled (default), all initialization tasks created by extensions, will be externalized as Jobs. In addition, the deployment will wait for these jobs. -
initTasks
Init tasks configuration.The init tasks are automatically generated by extensions like Flyway to perform the database migration before starting up the application.
This property is only taken into account if `quarkus.kubernetes.externalize-init` is true.
-
initTaskDefaults
InitTaskConfig initTaskDefaults()Default Init tasks configuration.The init tasks are automatically generated by extensions like Flyway to perform the database migration before staring up the application.
-
outputDirectory
Optionally set directory generated Kubernetes resources will be written to. Default is `target/kubernetes`. -
deploy
@WithDefault("false") boolean deploy()If set to true, Quarkus will attempt to deploy the application to the target Kubernetes cluster -
deployStrategy
@WithDefault("CreateOrUpdate") io.quarkus.kubernetes.spi.DeployStrategy deployStrategy()If deploy is enabled, it will follow this strategy to update the resources to the target Kubernetes cluster. -
getDeploymentResourceKind
default DeploymentResourceKind getDeploymentResourceKind(io.quarkus.deployment.Capabilities capabilities)
-
initTasks()configuration instead