scofield 3 лет назад
Родитель
Сommit
0c391cef05
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      deploy-tmp.yaml

+ 12 - 0
deploy-tmp.yaml

@@ -28,6 +28,18 @@ spec:
               mountPath: /data
       #nodeSelector:
       #  app.touchrs: touchrs
+      affinity:
+        podAntiAffinity:
+          preferredDuringSchedulingIgnoredDuringExecution:
+          - weight: 100
+            podAffinityTerm:
+              labelSelector:
+                matchExpressions:
+                - key: app
+                  operator: In
+                  values:
+                  - offline-process-newmedia
+              topologyKey: kubernetes.io/hostname
       containers:
         - name: offline-process-newmedia
           image: hub.evbj.easou.com/qa/offline-process-newmedia:v1.1.39