-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update Dockerfile to use Entrypoint Script to support Cgroupv2 #3237
Conversation
Fixes usage of containerized k3s on cgroupv2 systems Signed-off-by: Thorsten Klein <iwilltry42@gmail.com>
@@ -19,5 +20,5 @@ VOLUME /var/lib/cni | |||
VOLUME /var/log | |||
ENV PATH="$PATH:/bin/aux" | |||
ENV CRI_CONFIG_FILE="/var/lib/rancher/k3s/agent/etc/crictl.yaml" | |||
ENTRYPOINT ["/bin/k3s"] | |||
ENTRYPOINT ["/bin/entrypoint.sh"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic should be coded in k3s agent, not in a shell script IMHO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic should be coded in k3s agent, not in a shell script IMHO
Agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds like we're in agreement that this should go into the k3s agent code alongside the other cgroup handling stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested changes as per https://github.com/k3s-io/k3s/pull/3237/files#r621450213 (-> moby/moby#42331)
Closing this because there's a better place for this in k3s agent code. |
- Ref: see discussion at k3s-io#3237
- Ref: see discussion at k3s-io#3237
- Cgroupv2 fix as per k3s-io/k3s#3237 & k3s-io/k3s#3242
- Ref: see discussion at k3s-io#3237 Signed-off-by: Thorsten Klein <iwilltry42@gmail.com>
- Ref: see discussion at k3s-io#3237 Signed-off-by: Thorsten Klein <iwilltry42@gmail.com>
- Ref: see discussion at k3s-io#3237 Signed-off-by: Thorsten Klein <iwilltry42@gmail.com>
Proposed Changes
Fixes usage of containerized k3s on cgroupv2 systems
Types of Changes
Verification
server
)Linked Issues
Further Comments