Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

singleuser: extraPodConfig: does not get set by the helm chart #3021

Open
goseind opened this issue Feb 10, 2023 · 2 comments
Open

singleuser: extraPodConfig: does not get set by the helm chart #3021

goseind opened this issue Feb 10, 2023 · 2 comments
Labels

Comments

@goseind
Copy link

goseind commented Feb 10, 2023

Bug description

I'm trying to set fsGroupChangePolicy: "OnRootMismatch" to the securityContext of my single user containers - as this is required by my cloud provider - like so:

singleuser:
   extraPodConfig:
     securityContext:
       fsGroupChangePolicy: "OnRootMismatch"

However, it doesn't work and the value does not get set once a user starts a session.

Linking also the discourse post regarding this issue: https://discourse.jupyter.org/t/extrapodconfig-values-do-not-get-set/17868

Expected behavior

Once a user starts a notebook, the pod securityContext should contain the above value, like so:

kind: Pod
metadata:
  name: user-pod
spec:
  containers:
    securityContext:
      fsGroupChangePolicy: "OnRootMismatch"

Actual behavior

The value does not get set, instead, the standard values are applied, so the values fsGroupChangePolicy: "OnRootMismatch" does not get set at all.

How to reproduce

Default helm installation with just the above config set in it.

Your personal set up

  • OS: default images (K8s helm installation)

I'm using the terraform helm provider to install the chart but have also tried the same with a regular helm install.

Full environment

n/a

# paste output of `pip freeze` or `conda list` here
Configuration

default

# jupyterhub_config.py
Logs
@goseind goseind added the bug label Feb 10, 2023
@welcome
Copy link

welcome bot commented Feb 10, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@wiegerthefarmer
Copy link

Any update on this? I've tried so many ways to get fsGroupChangePolicy set. The only way it works is if I have it in a yaml file that I manually start pods with, but that's not how our system works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants