diff --git a/config/schemas/config.yaml b/config/schemas/config.yaml index c831e15e2d..4136ed1457 100644 --- a/config/schemas/config.yaml +++ b/config/schemas/config.yaml @@ -5300,6 +5300,22 @@ properties: $ref: '#/$defs/kubernetesNodeSelector' affinity: $ref: '#/$defs/io.k8s.api.core.v1.Affinity' + customAntiAffinity: + title: Custom Anti Affinity + description: Define custom anti-affinity rules for OpenSearch. + type: object + properties: + requiredDuringSchedulingIgnoredDuringExecution: + description: Hard anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm' + preferredDuringSchedulingIgnoredDuringExecution: + description: Soft anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm' + additionalProperties: false masterNode: title: OpenSearch Master Node description: |- @@ -5326,6 +5342,22 @@ properties: $ref: '#/$defs/kubernetesTolerations' affinity: $ref: '#/$defs/io.k8s.api.core.v1.Affinity' + customAntiAffinity: + title: Custom Anti Affinity + description: Define custom anti-affinity rules for OpenSearch. + type: object + properties: + requiredDuringSchedulingIgnoredDuringExecution: + description: Hard anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm' + preferredDuringSchedulingIgnoredDuringExecution: + description: Soft anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm' + additionalProperties: false dataNode: title: OpenSearch Data Node description: |- @@ -5357,6 +5389,22 @@ properties: $ref: '#/$defs/kubernetesNodeSelector' affinity: $ref: '#/$defs/io.k8s.api.core.v1.Affinity' + customAntiAffinity: + title: Custom Anti Affinity + description: Define custom anti-affinity rules for OpenSearch. + type: object + properties: + requiredDuringSchedulingIgnoredDuringExecution: + description: Hard anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm' + preferredDuringSchedulingIgnoredDuringExecution: + description: Soft anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm' + additionalProperties: false clientNode: title: OpenSearch Client Node description: |- @@ -5383,6 +5431,22 @@ properties: $ref: '#/$defs/kubernetesNodeSelector' affinity: $ref: '#/$defs/io.k8s.api.core.v1.Affinity' + customAntiAffinity: + title: Custom Anti Affinity + description: Define custom anti-affinity rules for OpenSearch. + type: object + properties: + requiredDuringSchedulingIgnoredDuringExecution: + description: Hard anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm' + preferredDuringSchedulingIgnoredDuringExecution: + description: Soft anti-affinity rules. + type: array + items: + $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm' + additionalProperties: false extraRoles: title: OpenSearch Extra Roles description: Configures extra roles for OpenSearch Security.