Fix deployment

This commit is contained in:
dvirlabs 2025-07-03 09:45:26 +03:00
parent 17b8bd79f7
commit b397421308
2 changed files with 7 additions and 22 deletions

View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: navix-frontend-env
data:
env.js: |
window.ENV = {
API_BASE: {{ .Values.frontend.env.API_BASE | quote }},
MINIO_ENDPOINT: {{ .Values.frontend.env.MINIO_ENDPOINT | quote }},
MINIO_BUCKET: {{ .Values.frontend.env.MINIO_BUCKET | quote }}
};

View File

@ -18,14 +18,10 @@ spec:
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports:
- containerPort: 80
volumeMounts:
- name: env-config
mountPath: /usr/share/nginx/html/env.js
subPath: env.js
volumes:
- name: env-config
configMap:
name: navix-frontend-env
items:
- key: env.js
path: env.js
env:
- name: API_BASE
value: {{ .Values.frontend.env.API_BASE | quote }}
- name: MINIO_ENDPOINT
value: {{ .Values.frontend.env.MINIO_ENDPOINT | quote }}
- name: MINIO_BUCKET
value: {{ .Values.frontend.env.MINIO_BUCKET | quote }}