Closed lusu007 closed 1 year ago
I'm experiencing this issue as well.
There was a pullrequest for this issue but it was closed without any reason.
You can create a function that creates the needed namespaces and call that function in your pipeline for a temporary workaround.
...
functions:
create_namespaces: |
kubectl create ns namespace1 --dry-run=client -o yaml | kubectl apply -f -
kubectl create ns namespace2 --dry-run=client -o yaml | kubectl apply -f -
pipelines:
deploy:
run: |-
run_dependencies --all
ensure_pull_secrets --all
build_images --all -t $(git describe --always)
create_deployments --all
dev:
run: |-
create_namespaces
run_dependencies --all
ensure_pull_secrets --all
create_deployments --all
start_dev app
...
Thanks @lusu007, I'm already using a similar workaround.
Additional calls to kubectl
are causing me troubles when I deploy a project with many dependencies as it is hitting kubectl
rate limits. Due to that I had to resolve to using --sequential
flag, which slowed down everything noticeably.
Do we have any news on this?
What happened? I declared a dependency in my
devspace.yaml
file with the namespace config option set. The namespace does not exist when starting the cluster. The deployment fails because the namespace isn't created.What did you expect to happen instead? Devspace should create this namespace automatically (see #605).
How can we reproduce the bug? (as minimally and precisely as possible)
My devspace.yaml:
Local Environment:
Anything else we need to know?