The invalid value of the imagePullSecrets field when the pod is created on k8s

I have my own image of singleuser Jupyter which is stored in a private container registry. When I login to JupyterHub a separate pod is created under the user but the pod crashes on a pull from the container registry error with imagePullSecrets. The value with which the pod is created in the yaml file is not valid.

Here is my value in values.yaml:
singleuser:
imagePullSecrets:
- name: regsecret

And this is the value with which the pod is created:
imagePullSecrets:
- name: ‘-name’

I was debugging jupyter_config.py and the values taken from values.yaml are valid.
Does anyone have any idea what the problem might be?

Hi! Unfortunately the formatting on your configuration has been lost, so it’s hard to tell if there’s a problem with the YAML indentation or something else. Would you mind reformatting your pasted configuration as a code block using triple backticks? See

2 Likes