How to launch one Pod in a particular namespace in minikube?

0 votes

Hi Guys,

I am new to Kubernetes. Whenever I launched one Pod, it automatically created in the default namespace. I have created one namespace. I want to create one Pod inside this namespace. How can I do that?

Jun 30 in Kubernetes by akhtar
• 18,250 points
45 views

1 answer to this question.

0 votes

Hi@akhtar,

You can pass your namespace name when you launch one Pod in the Kubernetes cluster. Use the below-given command.

$ kubectl run web --image=httpd --namespace=namespace_name

I hope this will help.

answered Jun 30 by MD
• 42,420 points

Related Questions In Kubernetes

+1 vote
1 answer

How to use a Volume to communicate between two Containers running in the same Kubernetes-Pod?

Create a Pod that runs two Containers Create a ...READ MORE

answered Jul 23, 2019 in Kubernetes by Sirajul
• 55,620 points
841 views
0 votes
0 answers

How to access the configmap created on a worker node, in the pod.yaml in Master?

1. Configmap is created on the node1. ...READ MORE

Apr 4 in Kubernetes by jayabmaguluri
• 140 points
124 views
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
852 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
7,620 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,890 points

reshown Apr 12, 2019 by Kalgi 2,241 views
0 votes
1 answer

How to deploy Jenkins pod in minikube?

Hi@akhtar, In minikube you don't have to download ...READ MORE

answered May 19 in Kubernetes by MD
• 42,420 points
185 views
0 votes
1 answer

How to copy file inside a Pod in Kubernetes?

Hi@akhtar, You need to use the kubectl cp command ...READ MORE

answered Jul 5 in Kubernetes by MD
• 42,420 points
97 views