Open git4example opened 2 months ago
Thanks for opening this issue. I appreciate your summary of why, exactly, the script to write configuration into /etc will not work for Bottlerocket. It would be a reasonable approach for most general-purpose Linux systems, after all, but as you document, will not work for Bottlerocket.
What I'd like: We would like to have an option to modify kubelet logging format changed using toml setting. It would be nice if we can offer more kubelet config setting via API.
Any alternatives you've considered: If we modify
/etc/kubernetes/kubelet/config
by appending logging format setting works by SSH/SSM to the bottler rocket instance, however currently there is no toml setting which allows the same : https://bottlerocket.dev/en/os/1.19.x/api/settings/kubernetes/I tried updating
/etc/kubernetes/kubelet/config
to setup kubelet logging to json format using bootstrap-containers. However, its failing with Permission denied . Here is my setup :Dockerfile
bootstrap-script:
Extra args in toml user-data (in-addition to your other args to join cluster)
Error:
Its understood that, Bootstrap containers aren’t allowed to write to /etc. The content there is ephemeral and needs to be managed by the host. Bottlerocket will need to add a setting to the API to enable this.