Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Add custom root CA for pulling images? #851

Answered by neezer
neezer asked this question in Q&A
Discussion options

You must be logged in to vote

After a long and winding trip through documentation & issues on k3os, k3s, & containerd, I think I found my solution.

TL;DR I forgot that most of my manual edits in /etc were not persisting, so I was getting tons of false-negative failures about the CA cert.

I added the following line to /var/lib/rancher/k3os/config.yaml on all three nodes:

run_cmd:
  - "cat /usr/local/share/ca-certificates/my-cusom-root.crt >> /etc/ssl/certs/ca-certificates.crt"

This allowed my custom CA to be persisted and trusted by the OS—which makes containerd happy—which means I didn't end up needing to change anything else. My images are being downloaded now without issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by neezer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant