scofield 3 lat temu
rodzic
commit
046b718372
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      deploy-tmp.yaml

+ 12 - 0
deploy-tmp.yaml

@@ -18,6 +18,18 @@ spec:
         app: $DRONE_REPO_NAME
     spec:
       terminationGracePeriodSeconds: 180
+      affinity:
+        podAntiAffinity:
+          preferredDuringSchedulingIgnoredDuringExecution:
+          - weight: 100
+            podAffinityTerm:
+              labelSelector:
+                matchExpressions:
+                - key: app
+                  operator: In
+                  values:
+                  - dashouye
+              topologyKey: kubernetes.io/hostname
       initContainers:
         - name: init
           image: $JNLP_REPO/dev/busybox