kubernetes -- helm charts 开发: 13、搭建minikube环境

主要思路: 通过kvm安装(libvirt是建立在kvm之上的),然后用仓库,最后记得安装charts,就可以运行helm命令来安装组件

步骤0: 安装libvirt
https://github.com/kubernetes/minikube/blob/master/docs/drivers.md

sudo yum install libvirt-daemon-kvm qemu-kvm -y

sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
sudo systemctl status libvirtd.service

出现错误:
[root@localhost ~]# sudo systemctl status libvirtd.service -l
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since 一 2019-03-18 19:48:51 CST; 18s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
  Process: 8501 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3)
 Main PID: 8501 (code=exited, status=3)
    Tasks: 2 (limit: 32768)
   CGroup: /system.slice/libvirtd.service
           ├─1951 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           └─1954 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper

3月 18 19:48:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 18 19:48:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service failed.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service holdoff time over, scheduling restart.
3月 18 19:48:51 localhost.localdomain systemd[1]: start request repeated too quickly for libvirtd.service
3月 18 19:48:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 18 19:48:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service failed.

尝试:
1) 搜索
libvirtd.service holdoff time over, scheduling restart.

有错误日志:
Mar 18 20:14:40 bogon journal: libvirt version: 4.5.0, package: 10.el7_6.4 (CentOS BuildSystem <http://bugs.centos.org>, 2019-01-29-17:31:22, x86-01.bsys.centos.org)
Mar 18 20:14:40 bogon journal: hostname: localhost.localdomain
Mar 18 20:14:40 bogon journal: 内部错误:Failed to load module '/usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so': /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so: undefined symbol: rbd_diff_iterate2
Mar 18 20:14:40 bogon st2rulesengine: 2019-03-18 20:14:40,793 INFO [-] Found 0 rules defined for trigger default.my_polling_event
Mar 18 20:14:40 bogon st2rulesengine: 2019-03-18 20:14:40,795 INFO [-] No matching rules found for trigger instance 5c8f8bb09dc6d66cbbda47a5.
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/dbus-1/dbus-daemon-launch-helper: Success
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/dbus-1/dbus-daemon-launch-helper: Success
Mar 18 20:14:44 bogon dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/db

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值