modified: README.md
This commit is contained in:
11
README.md
11
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:**
|
||||
|
||||
Reference in New Issue
Block a user