Skip to content

ExtraVolumes and ExtraVolumeMounts for Configmap not working with singleuser #3579

Open
@duc-dn

Description

@duc-dn

Hi,
I want to mount a configmap sparkmagic config to singleuser pod but it doesn't work for me.
I created a configmap file, tried to mount it into a hub pod, and found the config file of spark magic.
However, in singleuser pod, I realized that it doesn't be mounted
singleuser in values.yaml:

singleuser:
  storage:
    extraVolumes:
      - name: spark-magic-config
        configMap:
          name: spark-magic-config
    extraVolumeMounts:
      - name: spark-magic-config
        mountPath: /home/config.json
        subPath: config.json

hub in values.yaml:

hub:
  extraVolumes:
    - name: spark-magic-config
      configMap:
        name: spark-magic-config
  extraVolumeMounts:
    - name: spark-magic-config
      mountPath: /home/config.json
      subPath: config.json

image
And I described notebook pod, it's none
image

Can you share with me some recommendations for this problem?

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