-
Notifications
You must be signed in to change notification settings - Fork 266
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
The mirror and rewrite configured on the ranger are missing in the /var/lib/rancher/rke2/agent/etc/containerd/config.toml
file.
#6066
Comments
Storing these items in config.toml has long been deprecated by containerd. Recent releases use files under the path set by the |
Thank you, may I know from which release version this has been supported? |
All of them starting in January. |
I created the rke2 cluster on Rancher 2.8.2, but it seems that I did not see the entry for config_path configuration in the configuration? |
The Rancher version doesn't matter. The RKE2 version is what determines how the containerd config file is generated. There is no specific option for configuring config_path. The registries.yaml content is used identically, the only difference is whether it goes into a single config file, or is spread across multiple files in the config_path directory. Is there an actual problem you are trying to solve? |
My specific problem now is that I am confused because I don't know how to rewrite the URL of sandbox_image. Although rke2 is not related to ranger, when used in conjunction with ranger, the configuration file of rke2 is automatically generated based on the ranger's configuration. I still don't understand how to solve the problem of rewriting urls for sandbox_image images. Is there a specific example about rewriting sandbox_image? Thank you. |
Is there a specific configuration method? |
The sandbox image is just |
I used it this way according to the document. Most of the pull for other images are effective, except for the pause in rke2, which does not work. Therefore, my initial question was that there is no rewrite rule in the configuration file for this rke. Only this sandbox_image in the rke2 config.toml configuration file was not correctly rewritten. I suspect it's a bug, or do you need any further logs from my end? |
Can you provide your registries.yaml, and containerd logs showing the rewrite not being applied for the pause image? |
Note: It is strange that only the sandbox_image in the config.toml configuration file has not been rewritten. Thanks! |
Please show the containerd log, not the rke2 log. The information here doesn't show that it's not being rewritten or anything else, all I se here is that some pods aren't running. |
I found an error in the containerd log and I'm not sure if it's related. I'm using CentOS 7.9.
|
According to online research, it seems that this matter is a normal situation. |
Yes, that's normal. If you can't run pods due to a missing sandbox image, the CNI install pod won't have run yet. Can you attach the whole containerd log? |
I have created a cluster in Rancher and configured
mirror
andrewrite
. The generatedregistries.yaml
file appears to be fine, but theconfig.toml
file that is supposed to be generated does not exist. This failure to generate theconfig.toml
prevents the rewrite process from functioning properly, hence the cluster cannot be established. Is this indicative of a bug?The text was updated successfully, but these errors were encountered: