From 2858174542d224ba7d77c20ec89470ba0875a84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 17 Jan 2026 12:13:23 +0000 Subject: [PATCH] modified: README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c717273..ad404ce 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, and management of containerized applications. It acts as an orchestrator, ensuring your containers run reliably across clusters of machines, handling networking, storage, and updates without downtime. - [kubectl](#kubectl) + - [Run a command inside a running Pod](#run-a-command-inside-a-running-pod) - [Get Pod](#get-pod) - [Pod delete](#pod-delete) - [OOMKilled](#oomkilled) @@ -45,6 +46,16 @@ kubectl is the command‑line tool used to interact with Kubernetes clusters. Th kubectl create namespace tests ``` +### Run a command inside a running Pod + +``` bash +# sh +kubectl exec -it ${POD_NAME} -- sh + +# bash +kubectl exec -it ${POD_NAME} -- bash +``` + ### Get Pod **Get pod name by label ap:**