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

clean up core pool sysctl config #6436

Conversation

shaneknapp
Copy link
Contributor

@shaneknapp shaneknapp commented Oct 28, 2024

fix the formatting of the core pool sysctl config, delete an accidental check-in and explicitly git ignore it.

@github-actions github-actions bot added documentation Issues around adding and modifying docs configuration labels Oct 28, 2024
@github-actions github-actions bot removed the documentation Issues around adding and modifying docs label Oct 28, 2024
Copy link
Contributor

@felder felder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do pods inherit these settings? Also I don't think it's a good idea to do this at the node level. I think it'd be better to have a deployment task that modifies the chp deployment. Even if pods do inherit, we don't want all pods on the core pool to do this. Nor would we want to expand the ephemeral port range on the node itself.

@shaneknapp
Copy link
Contributor Author

shaneknapp commented Oct 29, 2024

Do pods inherit these settings? Also I don't think it's a good idea to do this at the node level. I think it'd be better to have a deployment task that modifies the chp deployment. Even if pods do inherit, we don't want all pods on the core pool to do this. Nor would we want to expand the ephemeral port range on the node itself.

these are applied to the node, and then inherited by the pods that run on said nodes.

your points are valid though, we probably don't want both all the pods on these nodes (hub, k8s/gke plumbing) to inherit the enlarged ephemeral port range.

it looks like the only way to do this is in hub/values.yaml, in proxy: and setting chp.extraPodSpec to use this value and then redeploying the hubs. source docs are terrible, but the extrapodspec docs are here (search for securityContext.sysctls): https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec

fwiw, we will leave the remaining sysctl settings in the core pool config -- that is meant to tune the nodes themselves.

@shaneknapp
Copy link
Contributor Author

i'll revert the addition of the port range, and update the title/desc of this PR and merge it. i'd like to preserve the formatting fix and deletion of the old file that was accidentally checked in.

@shaneknapp shaneknapp changed the title [DH-377] Add sysctl config for user pools upon creation clean up core pool sysctl config Oct 29, 2024
@shaneknapp shaneknapp merged commit b8f6291 into berkeley-dsep-infra:staging Oct 29, 2024
2 checks passed
@shaneknapp shaneknapp deleted the add-sysctl-config-for-user-pools branch October 29, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants