Closed edim24 closed 2 years ago
@edim24 thanks for opening this PR! Could you share your devspace.yaml
please? What happens if you do a devspace purge
and devspace dev -b -d
?
I've tried both
devspace purge
devspace dev -b -d
No effect (((
My devspace.yaml looks like this:
version: v1beta9
vars:
- name: TAG
default: "master"
source: none
images:
node:
image: example.com/node:${TAG}
build:
disabled: true
nginx:
image: example.com/nginx:${TAG}
preferSyncOverRebuild: true
build:
disabled: true
deployments:
- name: foobar
helm:
replaceImageTags: false
chart:
name: ./dev/chart
values:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: ingress-private
kubernetes.io/ingress.provider: nginx
cert-manager.io/cluster-issuer: cert-manager-issuer
dev:
logs:
sync: false
images:
- node
open:
- url: https://${DEVELOPER_TAG}.foobar.example.com
sync:
- imageName: node
disableDownload: false
localSubPath: ./
containerPath: /src/
uploadExcludePaths:
- node_modules
- dist
- dev
profiles:
- name: build
patches:
- op: replace
path: deployments.name=foobar.helm.values.node.image
value: example.com/node:dev-${DEVELOPER_TAG}
- op: add
path: deployments.name=foobar.helm.values.node.build
value:
disabled: false
docker:
useBuildKit: true
- op: replace
path: deployments.name=foobar.helm.values.nginx.image
value: example.com/nginx:dev-${DEVELOPER_TAG}
- op: add
path: deployments.name=foobar.helm.values.nginx.build
value:
disabled: false
docker:
useBuildKit: true
- op: replace
path: deployments.name=foobar.helm.replaceImageTags
value: true
merge:
images:
node:
image: example.com/node
build:
disabled: false
docker:
useBuildKit: true
options:
target: node
tags:
- dev-${DEVELOPER_TAG}
nginx:
image: example.com/nginx
preferSyncOverRebuild: true
build:
disabled: false
docker:
useBuildKit: true
tags:
- dev-${DEVELOPER_TAG}
- name: debug
patches:
- op: add
path: dev.ports
value:
- imageName: node
forward:
- port: 9229
remotePort: 9229
@edim24 thanks for the information! I guess the problem is the image: example.com/node:${TAG}
, you need to specify it like this:
images:
node:
image: example.com/node
tags: ["${TAG}"]
build:
disabled: true
nginx:
image: example.com/nginx
tags: ["${TAG}"]
preferSyncOverRebuild: true
build:
disabled: true
After upgrading to version 5.16.0 devspace did not start correctly.
After downgrading to version 5.15.0 devspace could find all pods.