使用 Ubuntu 18.04。
我正在尝试使用本指南(LXD + conjure-up kubernetes)在我的本地机器(localhost)上安装一个 kubernetes 集群:
https://kubernetes.io/docs/getting-started-guides/ubuntu/local/#before-you-begin
当我运行时:
conjure-up kubernetes
我选择以下安装:
并选择localhost
“选择云”并为安装向导的其余部分使用默认值。然后它开始安装并在 30-40 分钟后完成并出现以下错误:
这是日志: https ://pastebin.com/raw/re1UvrUU
一个错误说:
2018-07-25 20:09:38,125 [ERROR] conjure-up/canonical-kubernetes - events.py:161 - Unhandled exception in <Task finished coro=<BaseBootstrapController.run() done, defined at /snap/conjure-up/1015/lib/python3.6/site-packages/conjureup/controllers/juju/bootstrap/common.py:15> exception=BootstrapError('Unable to bootstrap (cloud type: localhost)',)>
但这并没有太大帮助。
关于为什么安装向导/召唤失败的任何建议?
同样基于这篇文章:
https://github.com/conjure-up/conjure-up/issues/1308
我尝试先禁用防火墙:
sudo ufw disable
然后重新运行安装/conjure 安装向导。但我得到同样的错误。
关于我如何安装和配置 LXD/conjure-up 的更多详细信息如下:
$ snap install lxd
lxd 3.2 from 'canonical' installed
$ /snap/bin/lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (btrfs, ceph, dir, lvm) [default=btrfs]:
Create a new BTRFS pool? (yes/no) [default=yes]:
Would you like to use an existing block device? (yes/no) [default=no]:
Size in GB of the new loop device (1GB minimum) [default=26GB]:
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like LXD to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:
配置的组成员身份:
sudo usermod -a -G lxd $USER
newgrp lxd
接下来安装:
sudo snap install conjure-up --classic
然后运行安装:
conjure-up kubernetes