-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
provide arguments to k3s
for providing environmental variables to containerd
#3552
Comments
I had some code to do something like this sitting around from a while back, take a look at the PR and see what you think. |
Looks awesome! |
Confirmed containerd environment variables get passed through using master branch commitid
|
Hi, I'm testing k3s behind corporate proxy, and I couldn't make it work with environment variables "CONTAINERD_http_proxy" and "CONTAINERD_https_proxy". There is something missing in the install script, cf line 730: you're retrieving the Thus the FILE_K3S_ENV is incomplete, and the k3s service starts without the environment variables prefixed with CONTAINERD. I would add the following: Let's hope it can make it to the 1.22.2 release 😉 |
We want to use a proxy for fetcing images, but we do not want the complexity of managing
no_proxy
for other processes spawned by k3s (like etcd).Usually you alter containerd's proxy settings, through environmental variables, when executing containerd from the init system. But we prefer to use the built in containerd in k3s, which is spawned from k3s, and not init. Meaning k3s needs some method to supply the required variables to containerd.
Suggested implementation:
The text was updated successfully, but these errors were encountered: