Fix deployment
This commit is contained in:
parent
17b8bd79f7
commit
b397421308
@ -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 }}
|
||||
};
|
||||
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user