Interface KnativeConfig

All Superinterfaces:
EnvVarHolder, PlatformConfiguration

@ConfigMapping(prefix="quarkus.knative") @ConfigRoot(phase=BUILD_TIME) public interface KnativeConfig extends PlatformConfiguration
Knative
  • Method Details

    • targetPlatformName

      default String targetPlatformName()
      Description copied from interface: EnvVarHolder
      Specifies 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:
      targetPlatformName in interface EnvVarHolder
      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

      Optional<Integer> 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

      Optional<Integer> 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

      Optional<String> revisionName()
      The name of the revision.
    • 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") DeployStrategy deployStrategy()
      If deploy is enabled, it will follow this strategy to update the resources to the target Kubernetes cluster.