当前位置:   article > 正文

KubeEdge安装加入边缘节点报错: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into_error decoding json: json: cannot unmarshal number

error decoding json: json: cannot unmarshal number into go value of type map

KubeEdge安装加入边缘节点报错: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into
在这里插入图片描述

粗略看这个错误,咋一看是json解析问题,难道是自己哪里配置文件写错了? number类型写成String了?不知情的也许会这样去检查,浪费太多时间,

解决办法

最后经过各项检查分析,发现是自己的keadm版本和kubeEdge版本不一致造成的,所以去官网将keadm换成跟kubeEdge一致的版本就可以了。

keadm下载地址:https://github.com/kubeedge/kubeedge/releases
在这里插入图片描述

下载相对应版本的keadm和kubeedge即可。

keadm安装办法

1、直接下载

wget https://github.com/kubeedge/kubeedge/releases/download/v1.13.0/keadm-v1.13.0-linux-amd64.tar.gz
  • 1

2、解压缩

tar -zxvf keadm-v1.13.0-linux-amd64.tar.gz
  • 1

3、 将其配置进入环境变量,方便使用

cd keadm-v1.13.0-linux-amd64/keadm/
cp keadm /usr/sbin/ #将其配置进入环境变量,方便使用
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/546732
推荐阅读
相关标签
  

闽ICP备14008679号