kubeadm init:[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2

背景

在windows电脑的vmvare虚拟机上使用kubeadm init引导k8s集群主节点安装的时候出现下图错误,可以看到错误中提到the number of available CPUs 1 is less than the required 2,这意思就是我们cpu核心数不够,所以需要我们增加虚拟机的cpu核心数

在这里插入图片描述

解决办法

1、编辑虚拟机设置

如果你的虚拟机正在运行,可以先关闭你的虚拟机,然后点击编辑虚拟机设置,如下:

在这里插入图片描述

2、设置处理器数量为2

在这里插入图片描述

3、重启虚拟机

4、继续执行kubeadm init命令即可

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Product Description JBoss in Action is the first book to focus on teaching readers in detail how to use the JBoss application server. Unlike other titles about JBoss, the authors of JBoss in Action go deeper into the advanced features and configuration of the server. In particular, it focuses on enterprise-class topics, such as high availability, security, and performance. This book walks readers through the JBoss 5 Application Server from installation to configuration to production development. It shows how to configure the server's various component containers such as the JBoss Web Server, the EJB 3 server, and JBoss Messaging. It also provides detailed insight into configuring the various component services such as security, performance, and clustering. Beyond coverage of the core application server, the book also teaches how to use some of the "hot" technologies that run on top of the application server, such as Jboss Seam and JBoss Portal. The authors, both seasoned professional experts at developing and administering JBoss, provide meaningful explanations and background on many topics which they tie in with their own practical, real-world advice from their collective experience. These uniquely comprehensive explanations and the wide coverage provided in this book surpass any other content currently available in any other book, article, or documentation on the subject. About the Author Javid Jamae started his career in software in the mid 90s programming in C, C++, and PERL, but quickly realized the virtues of the Java programming language. He is a certified JBoss instructor and teaches courses in Hibernate and the JBoss Application Server. Javid is also an Agile evangelist and spends a large portion of his time transforming, coaching, and training organizations in using Agile methodologies. Peter Johnson started working in Java in 1998, and was lead designer on projects such as a JDBC driver for the DMSII database that runs on Unisys mainframes. For the past several years he has been chief architect on a team that does performance analysis of Java applications on large-scale Intel-based machines (i to 32 CPUs), and evaluates various open source software for enterprise readiness. Peter is a JBoss committer, working on the new admin console. Peter speaks often on Java and open-source related topics at various industry conferences.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值