Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

Question about how userTokenSOPS authenticate EKS clusters #5

Description

@lixmgl

We are getting unauthorized error when submit App to EKS cluster in this step:
https://github.com/apple/batch-processing-gateway/blob/main/docs/GETTING_STARTED.md#submit-a-spark-app

Error message is:

{"code":500,"message":"io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: {masterurl}/apis/sparkoperator.k8s.io/v1beta2/namespaces/spark-applications/sparkapplications. Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized."}

userTokenSOPS is generated from https://github.com/apple/batch-processing-gateway/blob/main/dev-setup/generate-bpg-config.sh#L17
This token comes from spark service account secret, do you need any additional setup on cluster level to make this authentication work?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions