Files
LuaMicroservices/k8s/handheld-devices/templates/frontend-deployment.yaml
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

58 lines
1.5 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
app: frontend
spec:
ports:
- port: {{ .Values.frontend.service.port }}
targetPort: {{ .Values.frontend.service.port }}
name: http
selector:
app: frontend
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: frontend
spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports:
- containerPort: {{ .Values.frontend.service.port }}
env:
- name: API_URL
value: {{ .Values.frontend.apiUrl | quote }}
- name: PORT
value: "{{ .Values.frontend.service.port }}"
livenessProbe:
httpGet:
path: /health
port: {{ .Values.frontend.service.port }}
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /health
port: {{ .Values.frontend.service.port }}
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}