Skip to content

Commit

Permalink
fix:db podAntiAffinity Preferred (#4701)
Browse files Browse the repository at this point in the history
Signed-off-by: jingyang <[email protected]>
  • Loading branch information
zjy365 authored Apr 22, 2024
1 parent 4b2d3c0 commit 7b5fdf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/providers/dbprovider/src/utils/json2Yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType
spec: {
affinity: {
nodeLabels: {},
podAntiAffinity: 'Required',
podAntiAffinity: 'Preferred',
tenancy: 'SharedNode',
topologyKeys: ['kubernetes.io/hostname']
},
Expand Down Expand Up @@ -119,7 +119,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType
spec: {
affinity: {
nodeLabels: {},
podAntiAffinity: 'Required',
podAntiAffinity: 'Preferred',
tenancy: 'SharedNode',
topologyKeys: ['kubernetes.io/hostname']
},
Expand Down Expand Up @@ -165,7 +165,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType
spec: {
affinity: {
nodeLabels: {},
podAntiAffinity: 'Required',
podAntiAffinity: 'Preferred',
tenancy: 'SharedNode',
topologyKeys: ['kubernetes.io/hostname']
},
Expand Down Expand Up @@ -208,7 +208,7 @@ export const json2CreateCluster = (data: DBEditType, backupInfo?: BackupItemType
spec: {
affinity: {
nodeLabels: {},
podAntiAffinity: 'Required',
podAntiAffinity: 'Preferred',
tenancy: 'SharedNode',
topologyKeys: ['kubernetes.io/hostname']
},
Expand Down

0 comments on commit 7b5fdf2

Please sign in to comment.