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