From a6082f6f4e973a7a9be2935726f07c8e3202cf20 Mon Sep 17 00:00:00 2001 From: haider Date: Thu, 17 Oct 2024 15:28:01 +0100 Subject: [PATCH] - Add node affinity to Neo4J and Solr deployment --- k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml | 8 ++++++++ k8chart-dev/ols4/templates/ols4-solr-deployment.yaml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml b/k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml index 9040bc4ad..2adcd1b65 100644 --- a/k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml +++ b/k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml @@ -18,6 +18,14 @@ spec: - name: {{ .Release.Name }}-neo4j-storage persistentVolumeClaim: claimName: {{ .Release.Name }}-neo4j-pvc + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - hh-rke-wp-webadmin-56-worker-2.caas.ebi.ac.uk containers: - name: neo4j image: ghcr.io/ebispot/ols4-neo4j:4.4.9-community diff --git a/k8chart-dev/ols4/templates/ols4-solr-deployment.yaml b/k8chart-dev/ols4/templates/ols4-solr-deployment.yaml index 3cc4ced22..9cc48808b 100644 --- a/k8chart-dev/ols4/templates/ols4-solr-deployment.yaml +++ b/k8chart-dev/ols4/templates/ols4-solr-deployment.yaml @@ -20,6 +20,14 @@ spec: claimName: {{ .Release.Name }}-solr-pvc securityContext: fsGroup: 8983 + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - hh-rke-wp-webadmin-56-worker-1.caas.ebi.ac.uk containers: - name: solr image: ghcr.io/ebispot/ols4-solr:9.0.0