4. podAntiAffinity:

ARTIFACTORY: How to use NodeAffinity and PodAntiAffinity when deploying Artifactory using Helm Charts

AuthorFullName__c
Ashraf Kherbawy
articleNumber
000005444
ft:sourceType
Salesforce
FirstPublishedDate
2022-10-25T12:53:31Z
lastModifiedDate
2023-01-22T11:06:57Z
VersionNumber
2
As explained before, by default our charts assign Artifactory pods using podAntiAffinity, which means that they will be assigned different nodes. The default value is:
artifactory:
  podAntiAffinity:
    type: soft
    topologyKey: "kubernetes.io/hostname"

The type can be either soft or hard.

The type soft indicates that it will use preferredDuringSchedulingIgnoredDuringExecution rule, and type hard indicates that it will use requiredDuringSchedulingIgnoredDuringExecution.
If you use any other type, it will act as no-antiAffinity.

podAntiAffinity will only be used if you leave the regular affinity value empty.