Commit d3de62b
authored
Fix containerd 2.x registry TLS config via hosts.toml (#5972)
* fix: migrate registry TLS config to containerd 2.x hosts.toml approach
Fixes #5161. containerd 2.0 removed inline registry.configs from config.toml.
Migrated to per-registry hosts.toml under /etc/containerd/certs.d/ to support
AL2023 (ships containerd 2.x by default) while maintaining 1.x compatibility.
- kubeadm: rewrite kubeadm_registry_containerd_configure() to use hosts.toml
- containerd addon: enable config_path in base install for future 1.x support
- gitignore: ignore AI/editor metadata and local workflow directories
* fix: strip colon-separated suffix from containerd v2.x config_path
containerd v2.x `config default` generates config_path with colon-separated
/etc/docker/certs.d suffix. The transfer service io.containerd.transfer.v1.local
silently ignores such paths and never reads hosts.toml, causing registry TLS
x509 verification failures. Strip the suffix to ensure hosts.toml is read.
Fixes: containerd/containerd#12415
* set config_path for transfer service as well1 parent 3f90b90 commit d3de62b
3 files changed
Lines changed: 38 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
172 | 183 | | |
173 | 184 | | |
174 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
0 commit comments