首页 > 编程语言 >KubeSphere系列---【离线安装kubeSphere时报错:failed: [k8s_node02] failed to connect to 192.168.137.102: could n

KubeSphere系列---【离线安装kubeSphere时报错:failed: [k8s_node02] failed to connect to 192.168.137.102: could n

时间:2024-05-26 22:35:23浏览次数:28  
标签:__ 22 192.168 failed ssh k8s

1.报错信息

[root@k8s_master kubesphere-3.4.1-1.23.15-offline-package]# ./kk init registry -f config-sample.yaml -a kubesphere.tar.gz


 _   __      _          _   __           
| | / /     | |        | | / /           
| |/ / _   _| |__   ___| |/ /  ___ _   _ 
|    \| | | | '_ \ / _ \    \ / _ \ | | |
| |\  \ |_| | |_) |  __/ |\  \  __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
                                    __/ |
                                   |___/

22:12:31 CST [GreetingsModule] Greetings
22:12:37 CST failed: [k8s_node02]
22:12:37 CST failed: [k8s_master]
22:12:37 CST failed: [k8s_node01]
error: Pipeline[InitRegistryPipeline] execute failed: Module[GreetingsModule] exec failed: 
failed: [k8s_node02] failed to connect to 192.168.137.102: could not establish connection to 192.168.137.102:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
failed: [k8s_master] failed to connect to 192.168.137.100: could not establish connection to 192.168.137.100:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain
failed: [k8s_node01] failed to connect to 192.168.137.101: could not establish connection to 192.168.137.101:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

2.解决方案

根据清单manifest下载好kubesphere.tar.gz之后,在执行"./kk init registry -f config-sample.yaml -a kubesphere.tar.gz"命令时,老报上面的错,查了半天,发现把机器的密码写错了,尴尬,记录一下,防止以后忘了。
config-sample.yaml的内容如下:

apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:
  name: sample
spec:
  hosts:
  #这里的user和password一定要写正确,是你的机器的用户名密码
  - {name: k8s_master, address: 192.168.127.100, internalAddress: 192.168.127.100, user: root, password: "root"}
  - {name: k8s_node01, address: 192.168.127.101, internalAddress: 192.168.127.101, user: root, password: "root"}
  - {name: k8s_node02, address: 192.168.127.102, internalAddress: 192.168.127.102, user: root, password: "root"}
  roleGroups:
    etcd:
    - k8s_master
    control-plane: 
    - k8s_master
    worker:
    - k8s_node01
    - k8s_node02
  controlPlaneEndpoint:
    ## Internal loadbalancer for apiservers 
    # internalLoadbalancer: haproxy
    domain: lb.kubesphere.local
    address: "10.192.52.93"
    port: 6443
  kubernetes:
    version: --with-kubesphere
    clusterName: cluster.local
    autoRenewCerts: true
    containerManager: 
  etcd:
    type: kubekey
  network:
    plugin: calico
    kubePodsCIDR: 10.233.64.0/18
    kubeServiceCIDR: 10.233.0.0/18
    ## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
    multusCNI:
      enabled: false
  registry:
    #这里确认先搭建好harbor私服
    type: harbor
    auths:
     "192.168.127.103:8090":
       username: admin
       password: Harbor12345
    privateRegistry: "192.168.127.103:8090"
    namespaceOverride: ""
    registryMirrors: []
    insecureRegistries: []
  addons: []

标签:__,22,192.168,failed,ssh,k8s
From: https://www.cnblogs.com/hujunwei/p/18214419

相关文章

  • git查看本机 ssh 公钥,如果没有则直接生成公钥
    1.第一步查看git的ssh公钥是否存在win+S键打开搜索框,输入GitBash并打开,或者直接找到gitbash右键打开gitbashcd~/.ssh如果目录存在,则表示有SSH秘钥。该目录下通常会有id_rsa.pub(公钥)和id_rsa(私钥)文件。如果你只是想快速检查秘钥是否存在,可以使用以下命令:法1:ls一下查......
  • The configuration for MySQL Server 8.0.27 has failed You can find more informati
    遇见这种情况,作者当时也是痛苦万分,网上找了许许多多的方法试了好多次都不行。分析问题出现这种问题是因为我们之前安装过但是没有安装完全就取消了,电脑里面已经存储了。重新安装的时候把安装位置和数据存放的位置路径全部使用英文,例如:之前我的安装路径:D:\用户\app\mysql......
  • 升级openssh前安装zlib报异常configure aborting
    事情是这样的,因为系统漏洞问题,需要升级openssh,从OpenSSH_9.3p1升级到OpenSSH_9.3p2系统版本:CentOS7升级OpenSSH_9.3p2之前需要先升级zlib从官网下载wgethttps://www.zlib.net/zlib-1.3.1.tar.gz解压tar-zxvfzlib-1.3.1.tar.gzcdzlib-1.3.1./configure--prefix=/u......
  • tdmpc2 Failed to make environment
    问题描述https://github.com/nicklashansen/tdmpc2readme文档的例子是pythontrain.pytask=dog-runsteps=7000000,然后我想跑下metaworld中的assembly-v2任务,就得到下面的错误$pythontrain.pytask=assemblyValueError:Failedtomakeenvironment"assembly":ple......
  • Risc-V 移植 ssh 与 sftp 记录
    Risc-V移植ssh与sftp记录关于Risc-V  天下苦intel久矣,而ARM的授权费也不低,导致市面上的SOC要么都很贵,要么厂家和品类没那么丰富,全志、ST、TI、RK、晶晨、海思、高通、联发科。。。都是中大规模的公司,小厂做不了,感觉限制了它的发展。  后来出了个Risc-V指令......
  • Bash反弹shell & 搭建网页服务器 & 文件描述符学习 & ssh连接vm虚拟机 & sftp进行文件
    环境:kali:┌──(kali㉿kali)-[~/Desktop]└─$cat/proc/versionLinuxversion6.0.0-kali5-amd64([email protected])(gcc-12(Debian12.2.0-9)12.2.0,GNUld(GNUBinutilsforDebian)1.建立一个简单的链接进行nc,可以进行两个端口通信!#首先使用nc监听......
  • ssh连接失败:kex_exchange_identification: read: Connection reset by peer
    现象docker内部在35001端口上开启ssh服务,通过容器所在主机登录ssh,成功。但通过其他机器登录ssh,失败。 解决方法关闭容器所在主机的防火墙。#查看firewall服务状态systemctlstatusfirewalld#查看firewall的状态firewall-cmd--state#开启servicefirewalldstar......
  • GitHub SSH 快速配置
    每次更换系统或者电脑时,都需要重新配置一番GithubSSH的验证,记性不太好,写了一个快速部署的辅助脚本,直接安装脚本提示使用即可,经测试,Linux和Windows下均能使用。脚本功能设置Git用户名和邮箱脚本会提示用户输入Git用户名和邮箱,并将其设置为全局配置。生成新的......
  • ssh小测试
    点击查看代码Xshell7(Build0144)Copyright(c)2020NetSarangComputer,Inc.Allrightsreserved.Type`help'tolearnhowtouseXshellprompt.[C:\~]$Connectingto192.168.183.131:22...Connectionestablished.Toescapetolocalshell,press'......
  • Detection of Platform Module failed: 没有检测到有效的 Platform ID
    问题描述:DetectionofPlatformModulefailed:没有检测到有效的PlatformID华为欧拉系统搭建本地yum源,执行dnfmakecache后,报错”DetectionofPlatformModulefailed:没有检测到有效的PlatformID“这个问题通常出现在尝试使用YUM进行软件包管理时,特别是在华为的欧拉(Eule......