From 9f19a0b07598f423d98d0295c4fd668425f8cf7d Mon Sep 17 00:00:00 2001 From: jingyang <3161362058@qq.com> Date: Mon, 22 Apr 2024 15:23:23 +0800 Subject: [PATCH] fix:db podAntiAffinity Preferred Signed-off-by: jingyang <3161362058@qq.com> --- frontend/providers/dbprovider/src/utils/json2Yaml.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/providers/dbprovider/src/utils/json2Yaml.ts b/frontend/providers/dbprovider/src/utils/json2Yaml.ts index 2eaf458f7cb..2ec03bf618e 100644 --- a/frontend/providers/dbprovider/src/utils/json2Yaml.ts +++ b/frontend/providers/dbprovider/src/utils/json2Yaml.ts @@ -73,7 +73,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType spec: { affinity: { nodeLabels: {}, - podAntiAffinity: 'Required', + podAntiAffinity: 'Preferred', tenancy: 'SharedNode', topologyKeys: ['kubernetes.io/hostname'] }, @@ -119,7 +119,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType spec: { affinity: { nodeLabels: {}, - podAntiAffinity: 'Required', + podAntiAffinity: 'Preferred', tenancy: 'SharedNode', topologyKeys: ['kubernetes.io/hostname'] }, @@ -165,7 +165,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType spec: { affinity: { nodeLabels: {}, - podAntiAffinity: 'Required', + podAntiAffinity: 'Preferred', tenancy: 'SharedNode', topologyKeys: ['kubernetes.io/hostname'] }, @@ -208,7 +208,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType spec: { affinity: { nodeLabels: {}, - podAntiAffinity: 'Required', + podAntiAffinity: 'Preferred', tenancy: 'SharedNode', topologyKeys: ['kubernetes.io/hostname'] },