This commit is contained in:
2026-02-18 19:40:39 +01:00
parent 658a70f3ac
commit d2328fc8d6
4 changed files with 6 additions and 14 deletions

View File

@@ -36,9 +36,9 @@ COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
# Copy compiled application # Copy compiled application
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
# Run as non-root user # Run as non-root user (numeric UID required by Kubernetes runAsNonRoot)
RUN addgroup -S appgroup && adduser -S appuser -G appgroup RUN addgroup -S -g 1001 appgroup && adduser -S -u 1001 -G appgroup appuser
USER appuser USER 1001
EXPOSE 3001 EXPOSE 3001

View File

@@ -2,6 +2,6 @@ apiVersion: v2
name: timetracker name: timetracker
description: A Helm chart for the TimeTracker application description: A Helm chart for the TimeTracker application
type: application type: application
version: 1.0.0 version: 1.0.3
appVersion: "1.0.0" appVersion: "1.0.0"
dependencies: [] dependencies: []

View File

@@ -27,7 +27,7 @@ spec:
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 8080
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:

View File

@@ -26,14 +26,6 @@ spec:
name: {{ include "timetracker.fullname" $ }}-backend name: {{ include "timetracker.fullname" $ }}-backend
port: port:
number: {{ $.Values.backend.service.port }} number: {{ $.Values.backend.service.port }}
# Auth routes
- path: /auth
pathType: Prefix
backend:
service:
name: {{ include "timetracker.fullname" $ }}-backend
port:
number: {{ $.Values.backend.service.port }}
# Frontend (catch-all) # Frontend (catch-all)
- path: / - path: /
pathType: Prefix pathType: Prefix