diff --git a/resource-managers/kubernetes/README.md b/resource-managers/kubernetes/README.md index 31b721d193362..1eff6a6c8b84f 100644 --- a/resource-managers/kubernetes/README.md +++ b/resource-managers/kubernetes/README.md @@ -42,10 +42,12 @@ Below is a list of the submodules for this cluster manager and what they do. # Running the Kubernetes Integration Tests -Note that the integration test framework is currently being heavily revised and is subject to change. - Note that currently the integration tests only run with Java 8. +Integration tests firstly require installing [Minikube](https://kubernetes.io/docs/getting-started-guides/minikube/) on +your machine, and for the `Minikube` binary to be on your `PATH`.. Refer to the Minikube documentation for instructions +on how to install it. It is recommended to allocate at least 8 CPUs and 8GB of memory to the Minikube cluster. + Running any of the integration tests requires including `kubernetes-integration-tests` profile in the build command. In order to prepare the environment for running the integration tests, the `pre-integration-test` step must be run in Maven on the `resource-managers/kubernetes/integration-tests` module: diff --git a/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/config.scala b/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/config.scala index 0e35e04ff5803..5cef107463b85 100644 --- a/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/config.scala +++ b/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/config.scala @@ -496,6 +496,9 @@ package object config extends Logging { private[spark] val KUBERNETES_NODE_SELECTOR_PREFIX = "spark.kubernetes.node.selector." + private[spark] val KUBERNETES_TEST_DOCKER_TAG_SYSTEM_PROPERTY = + "spark.kubernetes.test.imageDockerTag" + private[spark] def resolveK8sMaster(rawMasterString: String): String = { if (!rawMasterString.startsWith("k8s://")) { throw new IllegalArgumentException("Master URL should start with k8s:// in Kubernetes mode.") diff --git a/resource-managers/kubernetes/integration-tests/pom.xml b/resource-managers/kubernetes/integration-tests/pom.xml index b91c239b6abe7..30091feb0ab8a 100644 --- a/resource-managers/kubernetes/integration-tests/pom.xml +++ b/resource-managers/kubernetes/integration-tests/pom.xml @@ -339,37 +339,6 @@ - - com.googlecode.maven-download-plugin - download-maven-plugin - 1.3.0 - - - download-minikube-linux - pre-integration-test - - wget - - - https://storage.googleapis.com/minikube/releases/v0.22.0/minikube-linux-amd64 - ${project.build.directory}/minikube-bin/linux-amd64 - minikube - - - - download-minikube-darwin - pre-integration-test - - wget - - - https://storage.googleapis.com/minikube/releases/v0.22.0/minikube-darwin-amd64 - ${project.build.directory}/minikube-bin/darwin-amd64 - minikube - - - -