Files
Christian van Dijk 94b4f31102
Some checks failed
CI / Lint (push) Failing after 39s
CI / Build (push) Has been skipped
CI / Test (push) Has been skipped
CI / Helm Lint (push) Successful in 13s
🎉 initial commit
2026-02-23 09:47:16 +01:00

62 lines
1.5 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: api
labels:
app: api
spec:
ports:
- port: {{ .Values.api.service.port }}
targetPort: {{ .Values.api.service.port }}
name: http
selector:
app: api
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
labels:
app: api
spec:
replicas: {{ .Values.api.replicaCount }}
selector:
matchLabels:
app: api
template:
metadata:
labels:
app: api
spec:
containers:
- name: api
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}"
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
ports:
- containerPort: {{ .Values.api.service.port }}
envFrom:
- configMapRef:
name: handheld-devices-config
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: handheld-devices-secrets
key: db-password
livenessProbe:
httpGet:
path: /health/live
port: {{ .Values.api.service.port }}
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health/ready
port: {{ .Values.api.service.port }}
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
resources:
{{- toYaml .Values.api.resources | nindent 12 }}