phase 16: nginx-unprivileged on 8080, helm dashboard deployment

This commit is contained in:
Celes Renata
2026-04-11 16:37:59 -07:00
parent 1fcb79503e
commit 59da3fe89e
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ ARG VITE_SYMBOL_REGISTRY_URL=""
ARG VITE_RISK_ENGINE_URL="" ARG VITE_RISK_ENGINE_URL=""
RUN npm run build RUN npm run build
# Stage 2: Serve # Stage 2: Serve (unprivileged nginx, runs as uid 101, port 8080)
FROM nginx:alpine FROM nginxinc/nginx-unprivileged:alpine
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
+1 -1
View File
@@ -1,5 +1,5 @@
server { server {
listen 80; listen 8080;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
@@ -123,5 +123,5 @@ spec:
service: service:
name: dashboard name: dashboard
port: port:
number: 80 number: 8080
{{- end }} {{- end }}
+3 -3
View File
@@ -139,13 +139,13 @@ services:
replicas: 1 replicas: 1
image: dashboard image: dashboard
tier: frontend tier: frontend
port: 80 port: 8080
resources: resources:
requests: { cpu: 50m, memory: 64Mi } requests: { cpu: 50m, memory: 64Mi }
limits: { cpu: 200m, memory: 128Mi } limits: { cpu: 200m, memory: 128Mi }
probes: probes:
readiness: { path: /, port: 80, initialDelay: 3, period: 10 } readiness: { path: /, port: 8080, initialDelay: 3, period: 10 }
liveness: { path: /, port: 80, initialDelay: 5, period: 30 } liveness: { path: /, port: 8080, initialDelay: 5, period: 30 }
## ConfigMap data ## ConfigMap data
config: config: