-
Notifications
You must be signed in to change notification settings - Fork 1.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
kubelet: enable crio runtime #235
kubelet: enable crio runtime #235
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rphillips If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -11,6 +11,9 @@ ExecStart=/usr/bin/hyperkube \ | |||
--bootstrap-kubeconfig=/etc/kubernetes/kubeconfig \ | |||
--kubeconfig=/var/lib/kubelet/kubeconfig \ | |||
--rotate-certificates \ | |||
--container-runtime=remote \ | |||
--container-runtime-endpoint=unix:///var/run/crio/crio.sock \ |
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.
This would also need to align with a change in the pod-checkpointer daemonset: https://github.com/kubernetes-incubator/bootkube/blob/master/cmd/checkpoint/main.go#L21
And if tests pass without this change - I'd be worried (and we should make sure checkpoint tests are actually running.
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.
Thanks. I added the command line arg here.
cd0dc2d
to
91cc901
Compare
Also related to openshift/machine-config-operator#52. |
Trying to test CRI-O: We use following flags on kubelet right now: --cni-conf-dir=/etc/kubernetes/cni/net.d \
--cni-bin-dir=/var/lib/cni/bin \ And our networking setup using
But when i switch on cri-o with kubelet
There seems to be a mismatch and pods come up with wrong networking... 4: cni0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 42:fa:29:92:56:47 brd ff:ff:ff:ff:ff:ff
inet 10.88.0.1/16 scope global cni0
valid_lft forever preferred_lft forever
inet6 fe80::40fa:29ff:fe92:5647/64 scope link
valid_lft forever preferred_lft forever
18: flannel.1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default
link/ether f2:d6:e5:f2:11:06 brd ff:ff:ff:ff:ff:ff
inet 10.2.1.0/32 scope global flannel.1
valid_lft forever preferred_lft forever
inet6 fe80::f0d6:e5ff:fef2:1106/64 scope link
valid_lft forever preferred_lft forever |
There are some side discussions ongoing - but my general position regarding CNI plugins/configuration:
So hypothetically the OS ships with runtime configured to use: However, for OpenShift clusters, we provide kubelet configuration that sets those locations to different locations (just as example): And both of those dirs are empty until a network daemonset has been deployed (which sets up plugins/configuration). |
In an out-of-band discussion with @sjenning @mrunalp , the move forward:
|
in parallel @mrunalp team is getting RHCOS compose to use a faster moving repo for |
@@ -11,6 +11,9 @@ ExecStart=/usr/bin/hyperkube \ | |||
--bootstrap-kubeconfig=/etc/kubernetes/kubeconfig \ | |||
--kubeconfig=/var/lib/kubelet/kubeconfig \ | |||
--rotate-certificates \ | |||
--container-runtime=remote \ | |||
--container-runtime-endpoint=unix:///var/run/crio/crio.sock \ | |||
--runtime-request-timeout=10m \ |
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.
Motivation for this setting is here.
#234 and https://github.com/coreos-inc/tectonic-operators/pull/457 have been closed. |
Changes look good. |
/retest |
/hold Networking needs work before merging |
@rphillips: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
change happening in #251 now |
Enables the crio runtime
Depends on #234 and https://github.com/coreos-inc/tectonic-operators/pull/457