Skip to content
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

fix: set limitnofile #713

Merged
merged 4 commits into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ansible/roles/containerd/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
path: "/etc/systemd/system/containerd.service.d/"
state: directory

- name: Create containerd max files
template:
dest: /etc/systemd/system/containerd.service.d/max-files.conf
src: etc/systemd/system/containerd.service.d/max-files.conf
mode: 0644
Copy link
Contributor

Choose a reason for hiding this comment

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

@faiq I started to rebase my molecule test PR #553

it turns out that this part fails with Ubuntu. This is when http_proxy or https_proxyis not set and the first task is not run due to that.

My suggestion:

Move this part after install includes and remove the conditions from directory creation

Copy link
Contributor

Choose a reason for hiding this comment

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

@faiq cherry-picking 137be77 should help


- name: Create containerd proxy conf
template:
dest: /etc/systemd/system/containerd.service.d/http-proxy.conf
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
LimitNOFILE=1048576