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

Incomplete description how to properly configure cri-o in kubernetes tutorial #1206

Open
krisiasty opened this issue Sep 21, 2020 · 0 comments
Labels
P2 Medium Priority

Comments

@krisiasty
Copy link

Describe the error/improvement to an existing document or image
In the manual installation section of kubernetes tutorial documentation the user have to choose one of the runtime engines.
The instruction for CRI-O is incomplete and lacks the section describing how to configure kubelet to use systemd as the cgroup driver, which is also necessary for cri-o. Without it, kubelet is not able to spawn any container.

The configuration is exactly the same as for containerd runtime, and should be done BEFORE enabling kubelet and crio service:

# configure kubelet to use systemd as a cgroup driver
sudo mkdir -p /etc/systemd/system/kubelet.service.d/
cat << EOF | sudo tee  /etc/systemd/system/kubelet.service.d/10-cgroup-driver.conf
[Service]
Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=systemd"
EOF

# enable kubelet
sudo systemctl enable kubelet.service

# enable and start cri-o
sudo systemctl enable --now crio.service

Screenshots

Environment (please complete the following):

  • Clear Linux OS version: 3372

Additional context

@krisiasty krisiasty added the P2 Medium Priority label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium Priority
Projects
None yet
Development

No branches or pull requests

1 participant