-
Notifications
You must be signed in to change notification settings - Fork 132
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
Support running shell script on Node boot #1729
Comments
Hey @renchap 👋🏻
This missing piece of feedback is unfortunately caused by the technical implementation of CAPI v1alpha1, which machine-controller built upon. Fields are not strongly typed, so requests trying to edit arbitrary fields like
At the moment OSPs are our only supported way of customising node bootstrapping. I understand that keeping things up to date requires more maintenance, but fundamentally we cannot know what kind of customisations are added and if they interfere with things our default bootstrapping does. Customisation requires more maintenance. At the same time, we appreciate the feedback that maintaining custom OSPs is "too much". We have been tracking a discussion to harmonise the process over at kubermatic/kubermatic#12310. Would a way to pre-process your custom OSP, e.g. via some templating engine (or similar so something like kustomize) help you? |
Yes, this would make sense. Having an easy way to create our custom OSP, inserting snippets where we need them, would be useful here. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. /close |
@kubermatic-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
In some environments, you might need to run some shell commands on node boot.
For example, with Hetzner, you need to enable Receive Packet Steering on your Cloud servers if you are managing a lot of packets on some pods, otherwise you will have the IRQs for the network card on one core, saturating it and slowing everything down.
I could not find a way to have a
MachineDeployment
run a command after booting on a node.I tried various forms around this, but the resulting
OperatingSystemConfig
never include those:This object is accepted and written on the k8s server, but the
runcmd
script is never written anywhere I can see. I am not sure if this is a bug, or a missing feature.I understood that an alternative would be to have a custom
OperatingSystemProfile
, but it means keeping it up-to-date with newer versions, which is burdensome.The text was updated successfully, but these errors were encountered: