Package io.quarkus.kubernetes.deployment
Interface KnativeConfig
- All Superinterfaces:
EnvVarHolder,PlatformConfiguration
@ConfigMapping(prefix="quarkus.knative")
@ConfigRoot(phase=BUILD_TIME)
public interface KnativeConfig
extends PlatformConfiguration
Knative
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this service is cluster-local.booleandeploy()If set to true, Quarkus will attempt to deploy the application to the target Kubernetes clusterio.quarkus.kubernetes.spi.DeployStrategyIf deploy is enabled, it will follow this strategy to update the resources to the target Kubernetes cluster.Global autoscaling configuration.maxScale()This value controls the maximum number of replicas each revision should have.minScale()This value controls the minimum number of replicas each revision should have.Revision autoscaling configuration.The name of the revision.booleanThe scale-to-zero values control whether Knative allows revisions to scale down to zero, or stops at “1”.default StringSpecifies which the name of the platform this EnvVarHolder targets.traffic()Traffic configuration.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
-
clusterLocal
@WithDefault("false") boolean clusterLocal()Whether this service is cluster-local. Cluster local services are not exposed to the outside world. More information in this link. -
minScale
This value controls the minimum number of replicas each revision should have. Knative will attempt to never have less than this number of replicas at any point in time. -
maxScale
This value controls the maximum number of replicas each revision should have. Knative will attempt to never have more than this number of replicas running, or in the process of being created, at any point in time. -
scaleToZeroEnabled
@WithDefault("true") boolean scaleToZeroEnabled()The scale-to-zero values control whether Knative allows revisions to scale down to zero, or stops at “1”. -
revisionAutoScaling
AutoScalingConfig revisionAutoScaling()Revision autoscaling configuration. -
globalAutoScaling
GlobalAutoScalingConfig globalAutoScaling()Global autoscaling configuration. -
revisionName
The name of the revision. -
traffic
Map<String,TrafficConfig> traffic()Traffic configuration. -
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.
-