Skip to content

Commit

Permalink
- Add node affinity to Neo4J and Solr deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Oct 17, 2024
1 parent b76f351 commit a6082f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions k8chart-dev/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6082f6

Please sign in to comment.