Skip to content

feat: k8s: gate kubelet --container-runtime-endpoint on setting#968

Draft
shvbsle wants to merge 1 commit into
bottlerocket-os:developfrom
shvbsle:feat/k8s-container-runtime-endpoint
Draft

feat: k8s: gate kubelet --container-runtime-endpoint on setting#968
shvbsle wants to merge 1 commit into
bottlerocket-os:developfrom
shvbsle:feat/k8s-container-runtime-endpoint

Conversation

@shvbsle

@shvbsle shvbsle commented Jul 7, 2026

Copy link
Copy Markdown

Issue number:

Closes #

Description of changes:
Wrap the --container-runtime-endpoint kubelet CLI flag in each kubelet-exec-start-conf template on settings.kubernetes.container-runtime-endpoint, falling back to the current unix:///run/containerd/containerd.sock default when unset.

Testing done:

  1. WIP

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Wrap the `--container-runtime-endpoint` kubelet CLI flag in each kubelet-exec-start-conf template on `settings.kubernetes.container-runtime-endpoint`, falling back to the current `unix:///run/containerd/containerd.sock` default when unset.

Signed-off-by: Shiv Bhosale <shvbsle@amazon.com>
Comment on lines +18 to +22
{{#if settings.kubernetes.container-runtime-endpoint}}
--container-runtime-endpoint={{settings.kubernetes.container-runtime-endpoint}} \
{{else}}
--container-runtime-endpoint=unix:///run/containerd/containerd.sock \
{{/if}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{#if settings.kubernetes.container-runtime-endpoint}}
--container-runtime-endpoint={{settings.kubernetes.container-runtime-endpoint}} \
{{else}}
--container-runtime-endpoint=unix:///run/containerd/containerd.sock \
{{/if}}
--container-runtime-endpoint={{default "unix:///run/containerd/containerd.sock" settings.kubernetes.container-runtime-endpoint}} \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants