Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Oct 4, 2024
1 parent 3f96b02 commit 888a177
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm_charts/taxonium-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v2
name: taxonium-backend
description: A Helm chart for the Taxonium backend
version: 0.1.0
55 changes: 55 additions & 0 deletions helm_charts/taxonium-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-taxonium-backend
labels:
app: {{ .Release.Name }}-taxonium-backend
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Release.Name }}-taxonium-backend
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.maxSurge | default "25%" }}
maxUnavailable: {{ .Values.maxUnavailable | default "25%" }}
template:
metadata:
labels:
app: {{ .Release.Name }}-taxonium-backend
annotations:
kubectl.kubernetes.io/restartedAt: {{ now | date "2006-01-02T15:04:05Z" | quote }}
spec:
containers:
- name: taxonium-backend
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: DATA_URL
value: {{ .Values.dataUrl }}
- name: CONFIG_JSON
value: {{ .Values.configJson }}
- name: MAXMEM
value: {{ .Values.maxmem | quote }}
ports:
- containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
31 changes: 31 additions & 0 deletions helm_charts/taxonium-backend/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
replicaCount: 1

image:
repository: theosanderson/taxonium_backend
tag: master
pullPolicy: Always

maxSurge: "25%"
maxUnavailable: "25%"


dataUrl: "https://cov2tree.nyc3.cdn.digitaloceanspaces.com/latest_public.jsonl.gz"
configJson: "config_public.json"
maxmem: "7000"

livenessProbe:
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3

readinessProbe:
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3

resources:
requests:
cpu: "1"
memory: 6500Mi

0 comments on commit 888a177

Please sign in to comment.