美文网首页
Warning:detected “cgroupfs” as t

Warning:detected “cgroupfs” as t

作者: chuan_bai | 来源:发表于2020-04-29 09:06 被阅读0次

    问题描述:

    安装k8s时出现错误,在初始化阶段出现异常

    [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/

    问题原因:

    由于国内访问国外镜像访问不到,所以无法拉渠道k8s的镜像

    问题解决:

    在初始化kubeadm的命令中加入

     --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers
    

    我这里的初始化命令是:

    kubeadm init --kubernetes-version=v1.18.2 --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16 --service-cidr=10.96.0.0/12 --apiserver-advertise-address=192.168.220.130
    

    相关文章

      网友评论

          本文标题:Warning:detected “cgroupfs” as t

          本文链接:https://www.haomeiwen.com/subject/jzwwwhtx.html