Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

Could someone tell me what exactly is kubectl exec command?

1 Answer

0 votes
by (99k points)

Within Kubernetes, there is a Kubernetes command-line that could be used to manage and interact with clusters. There are numerous commands that could be used for these purposes. And one of those commands is “kubectl exec”, and now its function is to execute the command after selecting a container for debugging purposes.

The syntax for the “kubectl exec” command is:

kubectl exec POD [-c CONTAINER] -- COMMAND [args...]

This command is very helpful for those who work consistently with Kubernetes, workloads and is quite helpful in removing any error within the application.

If you are interested in learning Kubernetes and getting yourself certified, then I would recommend you to take up the Kubernetes training course from Intellipaat which is 10hrs online instructor-led training that also provides you with 20hrs for projects and exercises.

Also, check out our latest video on Kubernetes for Beginners.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
asked Dec 21, 2020 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...