Jelajahi Sumber

Try to spread redis pod apart

Victor Lavaud 7 bulan lalu
induk
melakukan
8b1197a6cc
1 mengubah file dengan 14 tambahan dan 0 penghapusan
  1. 14 0
      redis/values.yaml

+ 14 - 0
redis/values.yaml

@@ -10,10 +10,24 @@ master:
   service:
     ports:
       redis: 6379
+  affinity:
+    podAntiAffinityPreset:
+      requiredDuringSchedulingIgnoredDuringExecution:
+        - labelSelector:
+          matchLabels:
+            app.kubernetes.io/name: mariadb
+          topologyKey: kubernetes.io/hostname
 replica:
   podLabels:
     redis: replica
   replicaCount: 3
+  affinity:
+    podAntiAffinityPreset:
+      requiredDuringSchedulingIgnoredDuringExecution:
+        - labelSelector:
+          matchLabels:
+            app.kubernetes.io/name: mariadb
+          topologyKey: kubernetes.io/hostname
 metrics:
   enabled: true
   prometheusRule: