Skip to content

Commit

Permalink
Add node affinity to Neo4J and Solr deployment (#765)
Browse files Browse the repository at this point in the history
* - Add node affinity to Neo4J and Solr deployment

* - Correct format of affinity

* - Add affinity for Prod Deployment
  • Loading branch information
haideriqbal authored Oct 21, 2024
1 parent b76f351 commit c733951
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ spec:
labels:
app: {{ .Release.Name }}-neo4j
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- hh-rke-wp-webadmin-56-worker-2.caas.ebi.ac.uk
volumes:
- name: {{ .Release.Name }}-neo4j-storage
persistentVolumeClaim:
Expand Down
9 changes: 9 additions & 0 deletions k8chart-dev/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ spec:
labels:
app: {{ .Release.Name }}-solr
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- hh-rke-wp-webadmin-56-worker-1.caas.ebi.ac.uk
volumes:
- name: {{ .Release.Name }}-solr-storage
persistentVolumeClaim:
Expand Down
10 changes: 10 additions & 0 deletions k8chart/ols4/templates/ols4-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ spec:
labels:
app: {{ .Release.Name }}-neo4j
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- hh-rke-wp-webadmin-47-worker-2.caas.ebi.ac.uk
- hx-rke-wp-webadmin-40-worker-2.caas.ebi.ac.uk
volumes:
- name: {{ .Release.Name }}-neo4j-storage
persistentVolumeClaim:
Expand Down
10 changes: 10 additions & 0 deletions k8chart/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ spec:
labels:
app: {{ .Release.Name }}-solr
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- hh-rke-wp-webadmin-47-worker-1.caas.ebi.ac.uk
- hx-rke-wp-webadmin-40-worker-1.caas.ebi.ac.uk
volumes:
- name: {{ .Release.Name }}-solr-storage
persistentVolumeClaim:
Expand Down

0 comments on commit c733951

Please sign in to comment.