标签: microk8s

microk8s 适合生产环境,还是只适合开发?

microk8s似乎是在 Ubuntu 上安装 Kubernetes 的一种简单方法。有几个地方称它为 minikube 的替代品,它不是针对生产环境的,这篇文章似乎表明它主要针对开发环境。但是,我看不出它不适合生产环境的原因。

我有两台 Ubuntu 服务器,希望在每台服务器上安装 Kubernetes,同时维护也在这些服务器上运行的旧应用程序。我想知道 microk8s 是否适合这种情况。

microk8s 适合生产环境,还是只适合开发?

ubuntu kubernetes microk8s

18
推荐指数
2
解决办法
1万
查看次数

创建 MicroK8s 集群时出错:连接失败。加入节点的主机名 (xx) 未解析为 IP“xx”。拒绝加入 (400)

我在两台机器上安装了microk8s(1.24/stable)。\n两台机器的ip分别是\xef\xbc\x9a172.29.99.187、172.29.99.188。\n我在172.29.99.187\xef\xbc\下操作命令x9amicrok8s add-node

\n

输出:

\n
From the node you wish to join to this cluster, run the following:\nmicrok8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\n\nUse the '--worker' flag to join a node as a worker not running the control plane, eg:\nmicrok8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916 --worker\n\nIf the node you are adding is not reachable through the default interface you can use one of the following:\nmicrok8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\nmicrok8s join 192.168.192.122:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\nmicrok8s join 172.24.0.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\nmicrok8s join 172.30.239.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\nmicrok8s join 172.17.0.1:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\n
Run Code Online (Sandbox Code Playgroud)\n

我在172.29.99.188\xef\xbc\x9a处操作命令

\n
microk8s join 172.29.99.187:25000/57a191d07ce8fe360e13f4f1e9026ce8/5be428d4e916\n
Run Code Online (Sandbox Code Playgroud)\n

输出:

\n
Contacting cluster …
Run Code Online (Sandbox Code Playgroud)

cluster microk8s

7
推荐指数
1
解决办法
8907
查看次数

标签 统计

microk8s ×2

cluster ×1

kubernetes ×1

ubuntu ×1