Get the App
SLTechnology News&Howtos  ›  Servers  › 

Kubernetes replaces docker with cri-o

Shulou Source: shulou.com Published: 2022-06-02 12:47:54 09月29日 Update

Deployment environment # operating system: CentOS Linux release 8.0.1905 (Core) # kubelet version: v1.14.The runc version: v1.0.0-rc9# crictl version: v1.16.1#crio version: v1.15.2#conmon version: v2.0." cni version: v0.8." Network plug-in: kube-router# working directory: / apps# binary file directory: / usr/bin# cni Directory: / apps/cni# working node: win10 on Ubuntu 19.1 working directory: / mnt/g/work/crio# node IP:192.168.2.196# node name: node05 prepares the required binaries mkdir-p / mnt/g/work/criocd / mnt/g/work/criowget https://github.com/opencontainers/runc/releases/download/v1.0.0-rc9/runc.amd64wget https://github.com/kubernetes- Sigs/cri-tools/releases/download/v1.16.1/crictl-v1.16.1-linux-amd64.tar.gzwget https://github.com/cri-o/cri-o/releases/download/v1.15.2/crio-v1.15.2.tar.gzwget https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgzwget https://github.com/containers/conmon/archive/v2 .0.1.zip decompress the download file and compile the source code # conmon officially does not provide binary download, so compile # work node compile and then distribute sudo apt-get install\ gcc\ git\ libc6-dev\ libglib2.0-dev\ pkg-config\ make\ unzip\ runc# compile conmon# extract the conmon unzip v2.0.1.zipcd conmon-2.0.1make# binary directory. / Bin/conmoncp-pdr. / bin/conmon.. / rm-rf conmon-2.0.1 v2.0.1.zip # decompress cnimkdir. / cni/bincd. / cni/binmv.. /.. / cni-plugins-linux-amd64-v0.8.2.tgz. / tar-xvf cni-plugins-linux-amd64-v0.8.2.tgzrm-rf cni-plugins-linux-amd64-v0.8.2.tgz# back to the top directory cd.. /.. / # decompress crictltar-xvf crictl-v1.16.1-linux-amd64.tar.gz rm-f crictl-v1.16.1-linux-amd64.tar.gz # extract crio tar-xvf crio-v1.15.2.tar.gz cd crio-v1.15.2/bin/ mv crio-x86_64-static-glibc. /.. / crio rm-rf crio-v1.15.2 crio-v1.15.2.tar.gz # rename runc.amd64 mv runc.amd64 Runc chmod + x runc create profile cd / mnt/g/work/crio# configuration cni test profile access to kubernetes cluster need to delete this cni configuration file mkdir-p. / etc/cni/net.d cat >. / etc/cni/net.d/87-bridge.conflist

Tags: File configuration directory version binary node work compilation container comment network test run path storage success operating system parent address official Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Huawei MariaDB Shulou Tech Info