Skip to content

Commit 64982e0

Browse files
Added Affinity support for OUD & OUDSM Helm Charts (#75)
1 parent af989c7 commit 64982e0

File tree

2 files changed

+26
-5
lines changed
  • OracleUnifiedDirectorySM/kubernetes/helm/oudsm
  • OracleUnifiedDirectory/kubernetes/helm/oud-ds-rs

2 files changed

+26
-5
lines changed

OracleUnifiedDirectory/kubernetes/helm/oud-ds-rs/values.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2021, Oracle and/or its affiliates.
33
#
44
# Licensed under the Universal Permissive License v 1.0 as shown at
55
# https://oss.oracle.com/licenses/upl
@@ -153,8 +153,18 @@ nodeSelector: {}
153153

154154
tolerations: []
155155

156-
affinity: {}
157-
156+
affinity:
157+
podAntiAffinity:
158+
preferredDuringSchedulingIgnoredDuringExecution:
159+
- weight: 100
160+
podAffinityTerm:
161+
topologyKey: "kubernetes.io/hostname"
162+
labelSelector:
163+
matchExpressions:
164+
- key: app.kubernetes.io/name
165+
operator: In
166+
values:
167+
- oud-ds-rs
158168
# Configuration for Persistent Volume and Persistent Volume Claim for user_projects
159169
# PV/PVC associated with this configuration would be mounted inside containers at /u01/oracle/user_projects
160170
persistence:

OracleUnifiedDirectorySM/kubernetes/helm/oudsm/values.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2021, Oracle and/or its affiliates.
33
#
44
# Licensed under the Universal Permissive License v 1.0 as shown at
55
# https://oss.oracle.com/licenses/upl
@@ -121,7 +121,18 @@ nodeSelector: {}
121121

122122
tolerations: []
123123

124-
affinity: {}
124+
affinity:
125+
podAntiAffinity:
126+
preferredDuringSchedulingIgnoredDuringExecution:
127+
- weight: 100
128+
podAffinityTerm:
129+
topologyKey: "kubernetes.io/hostname"
130+
labelSelector:
131+
matchExpressions:
132+
- key: app.kubernetes.io/name
133+
operator: In
134+
values:
135+
- oudsm
125136

126137
secret:
127138
# If enabled it will use the secret created with base64 encoding. if value is false, secret would not be used and input values (through --set, --values, etc.) would be used while creation of pods.

0 commit comments

Comments
 (0)