Company
Date Published
Nov. 14, 2022
Author
Jack Roper
Word count
795
Language
English
Hacker News points
None

Summary

The article discusses the use of kubectl exec command to get a shell into a running container in a Kubernetes (K8S) cluster and run individual commands on a container. It provides examples for connecting to a single-container pod, running single commands directly using kubectl exec, and connecting to a specified container when a pod has multiple containers. The article emphasizes the importance of modifying containers temporarily for troubleshooting purposes only and recommends updating images if permanent modifications are required.