Creating Kuberenetes pods along with namespaces #227
Unanswered
UmamaheshMaxwell
asked this question in
Q&A
Replies: 1 comment
-
Sorry, I don't know of a way to do that. If you need a single command to create both a pod and namespace, then use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Bret,
Can I create namespace dynamically while creating a pod using kubectl run, below is my command I know it wouldn't work, but I am curious to know is there any way to create namespace using Kubectl run statement ? or is it mandatory for me create namespace in advance and then use run statement to use the created namespace.
kubectl run webproxy --image nginx --port 8080 -l "env=dev" -n webproxy
Error :
Error from server (NotFound): namespaces "webproxy" not found
Beta Was this translation helpful? Give feedback.
All reactions