Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Support setting ImagePullSecrets on the Spark pods #42

@ash211

Description

@ash211

For connecting to an authenticated docker registry where the underlying k8s cluster doesn't already have those docker creds, k8s supports specifying that registry's keys in a k8s secret and referring to the secret in the podspec. We should support that in spark-on-k8s

Following docs at https://kubernetes.io/docs/user-guide/images/#specifying-imagepullsecrets-on-a-pod that looks like:

Create a secret:

  • $ kubectl create secret docker-registry myregistrykey --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL

Use the secret on a pod using imagePullSecrets:

apiVersion: v1
kind: Pod
metadata:
  name: foo
  namespace: awesomeapps
spec:
  containers:
    - name: foo
      image: janedoe/awesomeapp:v1
  imagePullSecrets:
    - name: myregistrykey

We need a way to specify the creds that are used to pull the Spark images from a docker registry.

This is probably additional support for using fully-customizable YAML for pod specs: #38

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