Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-25887

Allow specifying Kubernetes context to use

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0, 2.3.1, 2.3.2, 2.4.0
    • 3.0.0
    • Kubernetes, Spark Core
    • None

    Description

      In working on SPARK-25809 support was added to the integration testing machinery for Spark on K8S to use an arbitrary context from the users K8S config file. However this can fail/cause false positives because regardless of what the integration test harness does the K8S submission client uses the Fabric 8 client library in such a way that it only ever configures itself from the current context.

      For users who work with multiple K8S clusters or who have multiple K8S "users" for interacting with their cluster being able to support arbitrary contexts without forcing the user to first kubectl config use-context <context> is an important improvement.

      This would be a fairly small fix to SparkKubernetesClientFactory and an associated configuration key, likely spark.kubernetes.context to go along with this.

      Attachments

        Activity

          People

            rvesse Rob Vesse
            rvesse Rob Vesse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: