Helm chart redesign and mgctl injection via hostpath mounting #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is complete redesign of the Helm Chart for metagpu device plugin deployment.
Compared to the almost static manifests in the current version, this one is fully using Helm templating in a convenient Helm way of doing it. And of cause now it is possible to install any number of Helm Chart deployments if needed (names are parametrized as well instead of hardcode).
Flexibility
Suggested Helm chart has rich
values.yamlto provide plugin configuration flexibility from the single file. I have added comments to the values according to my understanding of their meaning :) It might be worth to read through comments carefully before merging.Also, as this is a result of my attempt to get it functional on our setup, this includes changes for some small extra functionality.
Small additions on the Helm Chart level, like extraEnv is self-explanatory in values.yaml.
mgctlinjection via hostpath mountingThe feature worth to highlight separately is
mgctlinjection via hostpath mounting. It might deserve dedicated PR, but as it was bounded to Helm Chart side as well I am to lazy to split it at this point. I hope you can find it useful and we merge in one batch to avoid spending time on the formal split.Motivation: cp/chmod injection is not always possible as /usr/bin is not always writable, tools are not always in conrtainer, etc
Device plugin allows to mount hostPath to container (e.g. nvidia-smi is mounted that way or cuda libraries). The workflow for metagpu:
mgctlto the host directorymgctlmount from host directoryAdvantages:
mgctlin the containers is always up to date with mgdp version (e.g. update of deployment)Anyway it is conditional in both helm chart and mgdp, so end-user can chose the preferred way.