Interface KubernetesConfig

All Superinterfaces:
EnvVarHolder, PlatformConfiguration

@ConfigMapping(prefix="quarkus.kubernetes") @ConfigRoot(phase=BUILD_TIME) public interface KubernetesConfig extends PlatformConfiguration
Kubernetes
  • 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
    • deploymentTarget

      Optional<List<String>> 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

      @WithDefault("1") Integer 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
    • outputDirectory

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