How to run Kubectl exec command to login inside a Pod?

0 votes
Hi Guys,

I am new to Kubernetes. I want to login inside my Pod. How can I do that?
Jun 7 in Kubernetes by akhtar
• 18,250 points
111 views

1 answer to this question.

0 votes

Hi Guys,

You can use the below-given command to login inside your Pod.

$ kubectl exec -it pod_name -- bash

Hope this will help.

answered Jun 7 by MD
• 42,420 points

Related Questions In Kubernetes

0 votes
2 answers

How do I force a pod to run on a specific node?

By default, anti-affinity is not attempted by Kubernetes as ...READ MORE

answered Aug 6, 2019 in Kubernetes by Sirajul
• 55,620 points
405 views
0 votes
1 answer

how to debug a pending pod?

Pending pod cannot be scheduled onto a ...READ MORE

answered Jul 15, 2019 in Kubernetes by Sirajul
• 55,620 points
726 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 51,890 points
133 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,619 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
0 votes
1 answer

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

Hi@akhtar, You can pass your namespace name when ...READ MORE

answered Jun 30 in Kubernetes by MD
• 42,420 points
45 views