zoukankan      html  css  js  c++  java
  • kubeadm init初始化报错解决,亲测

    [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
    error execution phase preflight: [preflight] Some fatal errors occurred:
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-apiserver:v1.15.1: output: Error response from daemon: 
    Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.1: output: Error response from
     daemon: Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.1: output: Error response from daemon: 
    Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-proxy:v1.15.1: output: Error response from daemon: Get 
    https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/pause:3.1: output: Error response from daemon: Get https://r
    egistry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/etcd:3.3.10: output: Error response from daemon: Get https:/
    /registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
    	[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns:1.3.1: output: Error response from daemon: Get https
    ://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused
    
    • 解决

    在你原来运行命令的基础上,加如下,指定国内的源

    [root@kmaster ~]# kubeadm init --image-repository registry.aliyuncs.com/google_containers --ignore-preflight-errors=Swap
    

    另外

    如果你的/usr/lib/systemd/system/docker.service 文件有类似如下两行配置

    Environment="HTTPS_PROXY=http://www.ik8s.io:10080"
    Environment="NO_PROXY=127.0.0.0/8,172.20.0.0/16"
    

    注释或者删除掉就好了

  • 相关阅读:
    Linux用户配置文件、口令配置文件、组配置文件
    Linux忘记Root密码怎么找回
    Linux运行级别及解释
    Maven获取resources的文件路径、读取resources的文件
    常见状态码100、200、300、400、500等
    JVM内存模型
    tcl使用小结
    MFQ&&PPDCS
    总结下自己在工作中有关联的TCP/IP协议
    二层交换机和三层交换机
  • 原文地址:https://www.cnblogs.com/jojoword/p/11223627.html
Copyright © 2011-2022 走看看