Skip to content

Commit

Permalink
Control affinity&tolerations in Aidbox deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
faridco committed Jan 6, 2025
1 parent 0eb98cf commit 090ca22
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aidbox/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ home: https://www.health-samurai.io/aidbox
icon: https://aidbox.github.io/helm-charts/icon.png?1712669999
name: aidbox
type: application
version: 0.1.16
version: 0.1.17
4 changes: 3 additions & 1 deletion aidbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Aidbox](https://docs.aidbox.app/) is an efficient and scalable FHIR server built to handle healthcare data effectively, empowering healthcare providers and developers alike with its comprehensive platform for storing, accessing, and exchanging healthcare information in accordance with FHIR standards.

![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)
![Version: 0.1.17](https://img.shields.io/badge/Version-0.1.17-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)

## Installation

Expand Down Expand Up @@ -40,6 +40,7 @@ It will install the Aidbox in the `aidbox` namespace, creating that namespace if

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
Expand Down Expand Up @@ -85,6 +86,7 @@ It will install the Aidbox in the `aidbox` namespace, creating that namespace if
| startupProbe.httpGet.port | string | `"api"` | |
| startupProbe.initialDelaySeconds | int | `20` | |
| startupProbe.periodSeconds | int | `5` | |
| tolerations | list | `[]` | |
| updateStrategy.type | string | `"RollingUpdate"` | |
| volumeMounts | list | `[]` | |
| volumes | list | `[]` | |
9 changes: 9 additions & 0 deletions aidbox/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{- toYaml .Values.affinity | nindent 8 }}
{{- else }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -76,5 +80,10 @@ spec:
matchLabels:
{{- include "aidbox.selectorLabels" . | nindent 20 }}
topologyKey: "kubernetes.io/hostname"
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
5 changes: 4 additions & 1 deletion aidbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ extraEnvFromSecrets: []
serviceAccount:
# -- ServiceAccount to use
name: ""

updateStrategy:
type: RollingUpdate

affinity: {}
tolerations: []

0 comments on commit 090ca22

Please sign in to comment.