Interface KubernetesDevServicesBuildTimeConfig
public interface KubernetesDevServicesBuildTimeConfig
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe kubernetes api server version to use.Environment variables that are passed to the container.booleanenabled()If Dev Services for Kubernetes should be used.flavor()The flavor to use (kind, k3s or api-only).The kubernetes image to use.A list of manifest file paths that should be applied to the Kubernetes cluster Dev Service on startup.booleanBy default, if a kubeconfig is found, Dev Services for Kubernetes will not start.The value of thequarkus-dev-service-kuberneteslabel attached to the started container.booleanshared()Indicates if the Kubernetes cluster managed by Quarkus Dev Services is shared.
-
Method Details
-
enabled
@WithDefault("true") boolean enabled()If Dev Services for Kubernetes should be used. (default to true)If this is true and kubernetes client is not configured then a kubernetes cluster will be started and will be used.
-
apiVersion
The kubernetes api server version to use.If not set, Dev Services for Kubernetes will use the latest supported version of the given flavor.
-
imageName
The kubernetes image to use.If not set, Dev Services for Kubernetes will use default image for the specified
apiVersion()for the givenflavor(). -
flavor
The flavor to use (kind, k3s or api-only).If not set, Dev Services for Kubernetes will set it to: api-only.
-
overrideKubeconfig
@WithDefault("false") boolean overrideKubeconfig()By default, if a kubeconfig is found, Dev Services for Kubernetes will not start. Set this to true to override the kubeconfig config. -
manifests
A list of manifest file paths that should be applied to the Kubernetes cluster Dev Service on startup. If not set, no manifests are applied. -
serviceName
The value of thequarkus-dev-service-kuberneteslabel attached to the started container. This property is used whensharedis set totrue. In this case, before starting a container, Dev Services for Kubernetes looks for a container with thequarkus-dev-service-kuberneteslabel set to the configured value. If found, it will use this container instead of starting a new one. Otherwise, it starts a new container with thequarkus-dev-service-kuberneteslabel set to the specified value.This property is used when you need multiple shared Kubernetes clusters.
-
containerEnv
Environment variables that are passed to the container.
-