Knetes DaemonSet基础与应用场景.pdfVIP

  • 0
  • 0
  • 约1.7万字
  • 约 8页
  • 2026-08-18 发布于北京
  • 举报

1.1DaemonSet?

DaemonSet(守护进程集,缩写为ds)会在所有节点或匹配的节点上部署一个Pod。

DaemonSet

的使用场景

➢运行集群的daemon,

例如ceph或glusterd➢

节点的CNI网络插件,calico➢节点日志收集:

fluentd或filebeat➢节点:node

exporter➢

服务暴露:部署ingress

nginx

1.2创建一个DaemonSet

[root@k8s‑master01~]#

cat

nginx‑ds.yaml

apiVersion:

apps/v1

kind:

DaemonSet

metadata:

labels:

app:

nginx

name:

nginx

spec:

revisionHistoryLimit:

10

selector:

matchLabels:

app:

nginx

temte:

metadata:

creationTimestamp:

null

labels:

app:

nginx

spec:

containers:

image:

nginx:1.15.2

imagePull:

IfNotPr

文档评论(0)

1亿VIP精品文档

相关文档