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, 2020 in Kubernetes by akhtar
• 38,180 points
964 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, 2020 by MD
• 95,140 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
• 59,050 points
1,194 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
• 59,050 points
1,765 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
• 52,310 points
197 views
+1 vote
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
10,232 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, 2020 in Kubernetes by MD
• 95,140 points
2,304 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, 2020 in Kubernetes by MD
• 95,140 points
173 views