Fix deployment
This commit is contained in:
parent
e30e4cf23e
commit
17b8bd79f7
@ -12,16 +12,6 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: navix-frontend
|
app: navix-frontend
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
|
||||||
- name: copy-env
|
|
||||||
image: busybox
|
|
||||||
command: ["sh", "-c", "cp /config/env.js /env/env.js"]
|
|
||||||
volumeMounts:
|
|
||||||
- name: env-config
|
|
||||||
mountPath: /config
|
|
||||||
- name: env-volume
|
|
||||||
mountPath: /env
|
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: frontend
|
- name: frontend
|
||||||
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.tag }}"
|
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.tag }}"
|
||||||
@ -29,13 +19,10 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: env-volume
|
- name: env-config
|
||||||
mountPath: /usr/share/nginx/html/env.js
|
mountPath: /usr/share/nginx/html/env.js
|
||||||
subPath: env.js
|
subPath: env.js
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: env-volume
|
|
||||||
emptyDir: {}
|
|
||||||
- name: env-config
|
- name: env-config
|
||||||
configMap:
|
configMap:
|
||||||
name: navix-frontend-env
|
name: navix-frontend-env
|
||||||
|
|||||||
@ -2,7 +2,7 @@ frontend:
|
|||||||
image:
|
image:
|
||||||
repository: harbor.dvirlabs.com/my-apps/navix-frontend
|
repository: harbor.dvirlabs.com/my-apps/navix-frontend
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: master-4fc5494 # ✅ Move tag here under image
|
tag: master-4fc5494
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user