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

Set containerd as default CRI & systemd as the default cgroup driver #456

Closed
eak13 opened this issue Jan 28, 2021 · 11 comments
Closed

Set containerd as default CRI & systemd as the default cgroup driver #456

eak13 opened this issue Jan 28, 2021 · 11 comments
Assignees
Labels
enhancement New feature or request priority/critical Items critical to be implemented, usually by the next release ready for review Change related to the issue is ready for review size m
Milestone

Comments

@eak13
Copy link

eak13 commented Jan 28, 2021

As an Airship user, I want to have containerd as the default container runtime interface & systemd as the cgroup driver, so that we leverage industry standard drivers & future proof the platform.

Airship 2.0 currently uses docker as the default CRI (explicitly defined) & cgroupfs as the default cgroup driver (assumed default).

Docker being deprecated as k8s CRI v1.20
https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-and-docker/

Proposed change
Set containerd as the default CRI

Information on container runtimes & cgroup drivers:
https://kubernetes.io/docs/setup/production-environment/container-runtimes/
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-control-plane-node

@eak13 eak13 added enhancement New feature or request triage Needs evaluation by project members labels Jan 28, 2021
@jezogwza jezogwza added the priority/critical Items critical to be implemented, usually by the next release label Feb 3, 2021
@jezogwza jezogwza added this to the v2.0 milestone Feb 3, 2021
@jezogwza jezogwza removed the triage Needs evaluation by project members label Feb 3, 2021
@vs422h
Copy link

vs422h commented Feb 10, 2021

Could you please assign this issue to me?

@michaelfix
Copy link

@vs422h (Vladimir) - is there an update?

@vs422h
Copy link

vs422h commented Feb 26, 2021

PS is on the review, but it seems like this issue could be closed as an outdated. All CRI deployments are implemented in the image-bulder module, and this piece of code looks duplicated and could be removed.
For the reference: https://github.com/airshipit/images/tree/master/image-builder
I'd like to request a short technical discussion.

@michaelfix
Copy link

@ak3216 , @jezogwza , is what Vladimir is doing(done) duplicate, or obsolete?

@eak13
Copy link
Author

eak13 commented Mar 2, 2021

@vs422h (@mf4716 & @jezogwza), I was verifying that CRI & CGroup driver are being set in image builder & it looks like the CGroup driver is being set to systemd here: https://github.com/airshipit/images/blob/master/image-builder/assets/playbooks/roles/osconfig/tasks/crio.yaml but CRI is not being set by Image Builder.

I double checked with Craig & he reminded me that in earlier versions of k8s it was possible to set this via command-line arguments in which case it would have been possible to do it with image-builder. However that functionality was removed and now must be configured in the Kubernetes config along with all the other config params. So it sounds like we'll still need to set the CRI via airshipctl, but I can update this issue to make the CGroup driver just a verify given it should be handled by Image Builder.

@lb4368 lb4368 added the size m label Mar 15, 2021
@michaelfix
Copy link

@vs422h - Vladimir, are we closer to finishing, or confirming if this is dup/or moved to another issue #?

@jezogwza jezogwza modified the milestones: v2.0, v2.1 Mar 25, 2021
@lb4368
Copy link

lb4368 commented Mar 26, 2021

@lb4368 lb4368 added the ready for review Change related to the issue is ready for review label Mar 26, 2021
@airshipbot
Copy link

Related Change #775945

Subject: Update default CRI and cgroup driver
Link: https://review.opendev.org/c/airship/airshipctl/+/775945
Status: ABANDONED
Owner: Vladimir Sigunov (vladimir.sigunov@att.com)

Approvals

Code-Review
! None
Verified
-1 ATT Airship2.0 CI
+1 Zuul
Workflow
! None

Last Updated: 2021-04-20 16:39:43 CDT

@airshipbot
Copy link

airshipbot commented Apr 20, 2021

Related Change #787290

Subject: Update default CRI and cgroup driver
Link: https://review.opendev.org/c/airship/airshipctl/+/787290
Status: MERGED
Owner: Vladimir Sigunov (vladimir.sigunov@att.com)

Approvals

Code-Review
+2 Kostyantyn Kalynovskyi
+1 Alexey
+2 Ruslan Aliev
Verified
-1 ATT Airship2.0 CI
+2 Zuul
Workflow
+1 Ruslan Aliev

Last Updated: 2021-05-25 11:59:03 CDT

@vs422h
Copy link

vs422h commented May 14, 2021

The patchset is ready to review: https://review.opendev.org/c/airship/airshipctl/+/787290

airshipbot pushed a commit that referenced this issue May 25, 2021
Default CRI: containerd
Default cgroup driver: systemd

* Fixed VM disk size issue

Relates-To: #456

Change-Id: I4072fffcd466534e51a4e2da0b38272ead820d65
@eak13
Copy link
Author

eak13 commented May 26, 2021

Closing per patchset merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/critical Items critical to be implemented, usually by the next release ready for review Change related to the issue is ready for review size m
Projects
None yet
Development

No branches or pull requests

6 participants