From a72bcbcdab9c76a38c87c9678a08f67a52bc759b Mon Sep 17 00:00:00 2001 From: Neeptossss Date: Mon, 16 Oct 2023 15:03:37 +0200 Subject: [PATCH] fix(daemonset): replicate daemonset to all nodes --- cadvisor.daemonset.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cadvisor.daemonset.yaml b/cadvisor.daemonset.yaml index dba8383..470f062 100644 --- a/cadvisor.daemonset.yaml +++ b/cadvisor.daemonset.yaml @@ -54,4 +54,15 @@ spec: path: /sys - name: docker hostPath: - path: /var/lib/docker \ No newline at end of file + path: /var/lib/docker + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - pool-dop-ykf46 + - pool-dop-ykf4t + topologyKey: "kubernetes.io/hostname" \ No newline at end of file