In RO templates ro-api-deployments.yaml and ro-sp-deploy.yaml node affinity is hardcoded please externalize it -
Current templates -
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "hctl.harman.com/node-group"
operator: In
values: [{{ .Values.ro_api.nodeType | quote }}]
Updated by me - Better if you keep same key
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: {{ .Values.ro_api.nodeAffinityKey }}
operator: In
values: [{{ .Values.ro_api.nodeType | quote }}]
In RO templates ro-api-deployments.yaml and ro-sp-deploy.yaml node affinity is hardcoded please externalize it -
Current templates -
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "hctl.harman.com/node-group"
operator: In
values: [{{ .Values.ro_api.nodeType | quote }}]
Updated by me - Better if you keep same key
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: {{ .Values.ro_api.nodeAffinityKey }}
operator: In
values: [{{ .Values.ro_api.nodeType | quote }}]