-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Override the klipper-helm image used in default HelmCharts #3865
Comments
I believe the "disable" causes the new charts to be deleted. |
@FruityWelsh is correct, if you use the same names for your custom manifest as the rke2 bundled chart manifests that you've disabled, your custom manifests will be disabled and deleted as well. If you're providing custom manifests, you should be sure that they don't use the rke2- prefix, as that is essentially reserved for packaged components. |
Are there some good methods to trouble shoot the add-ons resource not adding the helm installation jobs? Quick description (
|
You can look at the k3s service log on the server to see if perhaps the yaml is malformed. With 1.22 releases, you should see events as well when describing, to save having to go grep through log files. |
is that available in any of the rke2 releases as well? I am not seeing anything besides Traifek erroring from helm. What my canal.yaml looks like:
Edit: |
Does it literally look like that, including the templating placeholders? |
No the those are replaced with images from a private docker registry, and tag strings |
Your HelmChart is does not seem to contain an actual chart to install? There's no name, version, repo, or inline chart data. Take a look at the manifest created by RKE2 when you don't disable the packaged Canal CNI; it will have the chart data base64-encoded inline. You can at the very least copy that file as a starting point for your own manifest and modify that before disabling the packaged CNI. If you don't need to use a custom JobImage, you can just use a HelmChartConfig manifest to apply customizations to the stock chart: https://docs.rke2.io/helm/#customizing-packaged-components-with-helmchartconfig |
Further success, though now the helm charts are pending, they are failing to schedule because the node is not ready. |
CNI charts need to be flagged as bootstrap, otherwise they won't be installed until after the nodes are ready. Another thing that's handled in the stock chart. |
Success I believe (my custom image is having issues, but I have no reason to believe related to the workaround):
|
Validated on master branch using commit id 2eddfe6Environment DetailsInfrastructure Node(s) CPU architecture, OS, and Version: Cluster Configuration:
Here in the example we have overridden using the older version of klipper-helm Default image: rancher/klipper-helm:v0.8.0-build20230510
Overridden with: rancher/klipper-helm:v0.7.7-build20230403
|
Is your feature request related to a problem? Please describe.
I need to be able to override the
klipper-helm
image to use a custom registry without adding a docker.io mirrorDescribe the solution you'd like
I can pass in
--klipper-helm-image=X
which adds thespec.jobImage
property to the default HelmChart files in/var/lib/rancher/rke2/server/manifests
Describe alternatives you've considered
add to config (RKE2 in the example but applies to k3s):
cp /var/lib/rancher/rke2/data/v1.21.3-rke2r1-789f04a3cde2/charts/rke2-canal.yaml /var/lib/rancher/rke2/server/manifests/rke2-canal.yaml
(repeat for other charts).add the
spec.jobImage
parameter to the 4 charts.start rke2-server.
Additional context
This would allow for a rebuilt image to be used without setting up a mirror for docker.io such as using IronBank images
Backporting
no
The text was updated successfully, but these errors were encountered: