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