本文共 658 字,大约阅读时间需要 2 分钟。
DaemonSet 确保全部(或者一些)Node 上运行一个 Pod 的副本。当有 Node 加入集群时,也会为他们新增一 个 Pod 。当有 Node 从集群移除时,这些 Pod 也会被回收。删除 DaemonSet 将会删除它创建的所有 Pod
apiVersion: apps/v1kind: DaemonSetmetadata: name: deamonset-example labels: app: daemonsetspec: selector: matchLabels: name: deamonset-example template: metadata: labels: name: deamonset-example spec: containers: - name: daemonset-example image: wangyanglinux/myapp:v1
内容来自
转载地址:http://plkof.baihongyu.com/