- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 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)',)>
但这并没有多大帮助。
对于安装向导/conjure-up 失败的原因有什么建议吗?
同样基于这篇文章:
https://github.com/conjure-up/conjure-up/issues/1308
我尝试先禁用防火墙:
sudo ufw disable
然后重新运行安装/召唤安装向导。但我遇到了同样的错误。
有关我如何安装和配置 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
最佳答案
我无法重现您的确切问题,但我安装了 conjure-up
+ lxd
,最后在我新安装的 VirtualBox Ubuntu 18.04(桌面)上安装了 Kubernetes )虚拟机。希望这个答案能够对您有所帮助!
我浏览了 kubernetes.io 文档页面,其中缺少一点信息,它确实提到了 lxd
但没有提到 lxd init
部分,我假设你拾取于conjure-up user manual 。
话虽如此,我按照conjure-up
用户手册进行了一些细微的更改。我假设您可以使用 conjure-up
的边缘版本,我一开始使用稳定版本,但在测试不同组合时更改为边缘版本。
此外,请确保您拥有 user manual 中规定的可用推荐资源。 、conjure-up
和 Kubernetes 的规范发行版 为您启动了许多容器。您可能不需要 3 个 etcd、3 个 worker 节点和 2 个 Master,并且如果您不只是调整容器的数量在conjure-up
向导中向下。
这些是我执行的步骤(作为我的本地用户):
sudo apt update && sudo apt update
conjure-up
:sudo snap install conjure-up --classic --edge
lxd
:sudo snap install lxd
lxd
而来的是客户端部分,即 lxc
,如果您运行例如lxc list
您应该得到一个空表(尚未启动容器)。我此时遇到权限错误,我运行了以下命令:sudo chown -R lxd:lxd/var/snap/lxd/
更改 lxd
的所有者和组包含您将使用 lxc
进行通信的套接字的目录。lxd
组:sudo usermod -a -G lxd $USER && newgrp lxd
,注销并重新登录以使其永久而不仅仅是事件在您当前的 shell 中。lxd
网桥:lxc network create lxdbr1 ipv4.address=auto ipv4.nat=true ipv6.address=none ipv6.nat=false
lxd init
运行 lxd
的 init 部分。当被要求创建新的本地网桥时,请记住回答否
?,在下一个提示中提供您新创建的网桥(lxdbr1
)。其余问题的答案可以保留默认。conjure-up kubernetes
并选择 localhost
作为您的类型。对我来说,localhost
选择从一开始就是灰色的,当我手动创建网桥而不是通过 lxd init
步骤时,它就起作用了。您始终可以排除故障并列出使用 lxc
工具创建的所有容器。如果您曾经使用过 Docker,那么 lxc
工具感觉很像 docker
客户端。
最后是一些想法和观察,正如您可能已经看到的,有很多的移动部件需要想象
。它实际上被描述为:conjure-up 是一个涵盖几种不同底层技术的薄层 - Juju、MAAS 和 LXD。
作为引用,我最终安装了以下版本:
lxd
版本 3.3召唤
版本2.6.1关于kubernetes - 无法引导(云类型 : localhost) - Error when installing Kuberneters cluster locally with LXD/Conjure-up,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51525646/
连接到 LXD 时出现以下错误: Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket:
我正在尝试通过本教程在我的 Ubuntu 上安装 LXD https://docs.conjure-up.io/devel/en/user-manual#users-of-lxd其中说我必须遵循以下步
我正在使用 LXD 创建一个 Ubuntu 容器: lxd launch ubuntu first 当我收到此错误时: error : Error calling 'lxd forkstart /va
由于我想启动多个虚拟机,LXD 似乎是有效的 choice 但作为 docker,LXD 似乎没有那么热闹, 最初的想法,我已经使用LXC创建启动一个测试容器,并安装了mongodb数据库,至少mon
我正在设置 LXD 来玩魔术。我希望存储仅安装在我的 RAID 设备上,因此最好删除默认存储或替换/重定向它。 我无法删除默认存储,因为默认配置文件使用它。 我如何使用 RAID 存储并确保它没有使用
我有一个 Ubuntu 16.04 LTS 系统,我在其中创建了 3 个 LXD 容器。他们在那里工作得很好。系统在没有意外停止容器的情况下被重置。现在它们处于错误状态,我无法启动它们。当我尝试启动它
我在磁盘上有一个目录,归 share 所有gid 为 1001 .我想将该目录添加为其中一个 lxc 容器上的设备,并让该组结转。 我试过使用 raw.idmap 'gid 1001 1001'但是如
我已经查遍了,但不知道有没有办法。我有几个在 Ubuntu 14.04 主机上运行 Ubuntu 14.04 的 LXC 容器。它们对我来说变得非常重要,因此,如果主机的硬件发生故障,我希望能够轻松地
有没有办法在 Docker 中运行 LXD?例如。 在装有 ubuntu 16.04 的主机上: docker run --rm -it --net host --privileged ubuntu
我最近开始尝试 LXD 容器,并遇到了一个我似乎无法修复的基本障碍。 我无法在容器内运行和apt更新 ubuntu@dev:~$ lxc exec adil-php5 -- apt update ..
使用 Xvfb 可以轻松在 LXD 容器(ubuntu:16.04)内运行 GUI 应用程序并在容器内执行以下命令: Xvfb -ac :99 -screen 0 1600x900x24 & expo
如何在nodejs下通过unix套接字域连接到LXD API?我尝试以下代码但失败了。我得到了这个答案:HTTP/1.1 400 错误请求 var net = require('net'); var
我正在执行“ Geting started with Juju”步骤。 作为前提条件,我已经安装了LXD和ZFS。 root@d9574a01cb50:/# which lxd /usr/bin/lx
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我想在 zfs 数据集中创建一个卷: sudo zfs create mypool/maildir sudo lxc storage volume create mypool/maldir custo
我安装了 docker,但 ubuntu 产品似乎是开源软件,并没有打破我的钱包做同样的事情,但 docker 似乎更兼容谷歌云?我不确定 LXD,但我将它安装在带有安装帮助指南的包管理器中,但我不确
在 MAAS 中设置 LXD 集群时遇到问题 你好!我一直在与 maas 合作尝试设置 LXD 集群。 设置 马斯 Controller : Dell Optiplex(没什么特别的,只是我身边有一台
我正在本地服务器上使用 VMware ESXi 设置裸机管理程序,该服务器将具有 kubernetes 集群。 我应该将 Linux 容器与 一起使用吗? LXD 设置我的 Kubernetes 集群
我正在运行带有 LXD 容器的最新 Ubuntu (16.10)。容器配置有桥接网络,它们从 DHCP 服务器接收自己的 IP 地址。我为它们配置了以下内容: lxc 配置文件设备添加默认 eth0
当我运行以下命令时: 我得到以下输出: 但我只想获取命令中指定的容器而不是所有容器。 我该怎么做? 最佳答案 您可以使用 POSIX 扩展正则表达式: lxc list -c n '^ubuntu$'
我是一名优秀的程序员,十分优秀!