Skip to content

Commit

Permalink
Merge pull request #36 from Financial-Times/fix/CPH-331-antiaffinity
Browse files Browse the repository at this point in the history
Distribute load between nodes in cluster
  • Loading branch information
dbelev committed Jan 5, 2021
2 parents 81d404b + 9178f85 commit f41fdec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions helm/internal-content-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ spec:
values:
- {{ .Values.service.name }}
topologyKey: "kubernetes.io/hostname"
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- content-search-api-port
topologyKey: "kubernetes.io/hostname"
containers:
- name: {{ .Values.service.name }}
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
Expand Down
5 changes: 3 additions & 2 deletions helm/internal-content-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ image:
pullPolicy: IfNotPresent
resources:
requests:
memory: 20Mi
memory: 14Mi
cpu: 64m
limits:
memory: 128Mi
env: # environment variable for the app
Expand All @@ -31,5 +32,5 @@ env: # environment variable for the app
CONTENT_UNROLLER_APP_NAME: ""
CONTENT_UNROLLER_APP_HEALTH_URI: ""
CONTENT_UNROLLER_APP_PANIC_GUIDE: ""
CONTENT_UNROLLER_APP_BUSINESS_IMPACT: ""
CONTENT_UNROLLER_APP_BUSINESS_IMPACT: ""
APP_SYSTEM_CODE: ""

0 comments on commit f41fdec

Please sign in to comment.