Skip to content

Commit

Permalink
- Correct format of affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Oct 17, 2024
1 parent a6082f6 commit 3e9d0b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
17 changes: 9 additions & 8 deletions k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ 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:
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
17 changes: 9 additions & 8 deletions k8chart-dev/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ 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:
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 3e9d0b5

Please sign in to comment.