我在Ubuntu 18.04 LTS VPS上设置juju bootstrap localhost
时遇到问题。我已经在另一台机器上完成了相同的配置,并且效果很好。
我的VPS信息是 94 GB RAM 和 480 GB SSD RAID 5
在我update
和upgrade
的VPS之后,我遵循迷人的kubernetes 文档中的命令:
sudo apt purge liblxc1 lxcfs lxd lxd-client
sudo snap install lxd
lxd init --auto
lxc network set lxdbr0 ipv6.address none
sudo swapoff -a
sudo usermod -a -G lxd $USER
注销并再次登录!
sudo snap install juju --classic
juju bootstrap localhost
此后,juju开始设置本地主机:
Creating Juju controller "localhost-localhost" on localhost/localhost
Looking for packaged Juju agent version 2.7.1 for amd64
To configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md
Launching controller instance(s) on localhost/localhost...
- juju-0079d6-0 (arch=amd64)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.15.0
Waiting for address
Attempting to connect to 10.92.167.222:22
Connected to 10.92.167.222
Running machine configuration script...
我等了一个半小时!!但是什么都没发生!之后,我尝试使用ctrl + c取消安装:
^C
Interrupt signalled: waiting for bootstrap to exit
Bootstrap agent now started
Contacting Juju controller at 10.92.167.222 to verify accessibility...
ERROR unable to contact api server after 1 attempts: unable to connect to API: dial tcp 10.92.167.222:17070: connect: connection refused
我不知道女巫是不是我做错了,或者这是一个bug还是什么,希望你们能帮助我,谢谢。