大网数据广告活动
服务器运维问答

Can I run a single-node K3S cluster?

· 52CE 我爱测

I am aware of the consequences and issues with running a single-node cluster. However, I'm still curious if it's possible. I plan on setting everything up myself. In other words, can I run the control plane and a worker node on t…

问题原文

原帖链接 · Mathias Lykkegaard Lorenzen · CC BY-SA 4.0

I am aware of the consequences and issues with running a single-node cluster. However, I'm still curious if it's possible. I plan on setting everything up myself.

In other words, can I run the control plane and a worker node on the same physical machine.

已采纳解答

原帖链接 · Mark · CC BY-SA 4.0

Please let me elaborate with this topic:

"In other words, can I run the control plane and a worker node on the same cluster"

From k3s docs:

A server node is defined as a machine (bare-metal or virtual) running the k3s server command.

A worker node is defined as a machine running the k3s agent command. Adding more agent will create more worker nodes to run your application.

In this concept one master node (running k3s server command and additional agent nodes running the k3s agent command) still create one cluster with single control plane. However you can extend this approach by creating High-Availability K3s Server with multiple server(control planes) and agents nodes.

As per k8s docs:

Control Plane Components:

  • kube-apiserver,
  • etcd,
  • kube-scheduler,
  • kube-controller-manager,
  • cloud-controller-manager,

As I can see there is also an option to run k3s wiht multiple agents on single machine Using Docker as the Container Runtime - K3d ( (K3s in Docker) and docker-compose.

As an alternative please follow:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-08-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。