Comments (4)
@kuuji Thanks for submitting this issue! Yes this does seem odd, and the recommended usage is to use devspace use namespace [NAMESPACE]
before running devspace deploy
. This results in updating the your kube config to have a namespace set as well, which is more reliable for advanced uses of DevSpace, where other processes that use the kube config are involved.
I'll bring this up for discussion to see if we either want to fix this for the simpler cases, or officially deprecate the flag in favor of devspace use namespace
from devspace.
@kuuji Thanks for submitting this issue! Yes this does seem odd, and the recommended usage is to use
devspace use namespace [NAMESPACE]
before runningdevspace deploy
. This results in updating the your kube config to have a namespace set as well, which is more reliable for advanced uses of DevSpace, where other processes that use the kube config are involved.I'll bring this up for discussion to see if we either want to fix this for the simpler cases, or officially deprecate the flag in favor of
devspace use namespace
@lizardruss I cannot use devspace use namespace
while running incluster
. There is no kubeconfig when incluster
, it's using the service account and the default namespace becomes the namespace the pod is in. So sadly this isn't an option.
I don't think the flag should be deprecated if there is no other way for incluster.
edit: I did try that as well ;)
from devspace.
@kuuji Ah I see, I skimmed over the incluster part. I'm surprised that setting the namespace
in the deployment config didn't work. We'll take a look, but it may be some time before this gets prioritized.
from devspace.
@lizardruss I found a bit of time to dig and got to the bottom of it. I'll put up a fix today or tomorrow.
the TLDR; is it's because of the way the manifests are rendered in https://github.com/devspace-sh/devspace/blob/main/pkg/devspace/deploy/deployer/kubectl/builder.go#L111-L166 when incluster. This is specifically because we run kubectl
to render the manifests and when you're incluster kubectl will add the namespace you're in to all the manifests.
This doesn't affect inlineManifests, because we don't use kubectl to render that.
And this doesn't affect when you're not incluster because the namespace kubectl inject will be based on what's in your kubeconfig.
from devspace.
Related Issues (20)
- Cannot pull images from my local registry - getting ImagePullBackoff errors. HOT 2
- devspace init -> Docker-Compose migration ignores ENVs/--vars HOT 1
- Signed Windows executables
- Unable to use server-side apply
- devspace build --push HOT 1
- `--kubeconfig` cannot be set via DEVSPACE_FLAGS HOT 4
- Devspace failing to find entrypoint sh file when running "devspace dev" HOT 2
- Setting `buildKit: inCluster:` overrides `localRegistry` config
- Results of onUpload.exec.command not rendering in the terminal HOT 1
- devspace open will wait for a init container which is a sidecar HOT 1
- Rust Image still uses rustc 1.67.1 HOT 1
- Feature Request: Add Support for Showing Helm Diff
- make devspace SSH config optional
- Enabling `persistPaths` in devPod spec always replaces devPod even when there has been no config/podSpec changes HOT 2
- issue with env variable subsitution in deployment names
- devspace with k3d integration in WSL2 HOT 1
- How can we access DevSpace with DNS?
- Move dependency cache into .devspace
- Init fails if npm is used from fnm
- Constantly downloading devspace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devspace.