Kubernetes - DAEMONSET 与 DEPLOYMENT 区别

Deployment 部署的副本 Pod 会分布在各个 Node 上,每个 Node 都可能运行好几个副本。DaemonSet 的不同之处在于:每个 Node 上最多只能运行一个副本。

主要区别

  1. The scalability is much better when using a Deployment, because you will have a Single-Pod-per-Node model when using the DaemonSet.

  2. It is possible to exclusively run a Service on a dedicated set of machines using taints and tolerations with a DaemonSet.

  3. On the other hand the DaemonSet allows you to access any Node directly on Port 80 and 443, where you have to setup a Service object with a Deployment.

DaemonSet 的典型应用场景有

  1. 在集群的每个节点上运行存储 Daemon,比如 glusterd 或 ceph
     
  2. 在每个节点上运行日志收集 Daemon,比如 flunentd 或 logstash
     
  3. 在每个节点上运行监控 Daemon,比如 Prometheus Node Exporter 或 collectd

相关推荐

  1. Kubernetes - DAEMONSET DEPLOYMENT 区别

    2024-02-04 15:10:02       28 阅读
  2. k8s_DaemonSetDeployment区别

    2024-02-04 15:10:02       11 阅读
  3. Kubernetes】控制器Daemonset

    2024-02-04 15:10:02       27 阅读
  4. KubernetesDaemonSet 基本原理

    2024-02-04 15:10:02       9 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-04 15:10:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-04 15:10:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-04 15:10:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-04 15:10:02       20 阅读

热门阅读

  1. threejs之常用贴图

    2024-02-04 15:10:02       28 阅读
  2. Docker 第九章 : Docker 容器的互联(linking)

    2024-02-04 15:10:02       29 阅读
  3. QT总结-使用QOpenGLWidget后界面刷新卡死

    2024-02-04 15:10:02       36 阅读
  4. MySQL系统配置

    2024-02-04 15:10:02       34 阅读
  5. 2024/2/3 备战蓝桥杯 4-2 排序

    2024-02-04 15:10:02       36 阅读
  6. 按照特定的规则对 HTML 标签进行分类的方法

    2024-02-04 15:10:02       31 阅读
  7. C#(C Sharp)学习笔记_运算符【四】

    2024-02-04 15:10:02       31 阅读
  8. 二级C语言笔试2

    2024-02-04 15:10:02       24 阅读