From 666898b9d9b22667ff074d506a7a7cd73614ec42 Mon Sep 17 00:00:00 2001 From: Parag Pallav Singh <40052830+paragpallavsingh@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:27:40 +0530 Subject: [PATCH] Update README.md since given command is depracated --- 02-PODs-with-kubectl/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/02-PODs-with-kubectl/README.md b/02-PODs-with-kubectl/README.md index 8cafc58..c30630e 100644 --- a/02-PODs-with-kubectl/README.md +++ b/02-PODs-with-kubectl/README.md @@ -161,8 +161,8 @@ kubectl logs -f my-first-pod - **Connect to a Container in POD and execute commands** ``` # Connect to Nginx Container in a POD -kubectl exec -it -- /bin/bash -kubectl exec -it my-first-pod -- /bin/bash +kubectl exec -- /bin/bash +kubectl exec my-first-pod -- /bin/bash # Execute some commands in Nginx container ls @@ -173,12 +173,12 @@ exit - **Running individual commands in a Container** ``` -kubectl exec -it env +kubectl exec env # Sample Commands -kubectl exec -it my-first-pod env -kubectl exec -it my-first-pod ls -kubectl exec -it my-first-pod cat /usr/share/nginx/html/index.html +kubectl exec my-first-pod env +kubectl exec my-first-pod ls +kubectl exec my-first-pod cat /usr/share/nginx/html/index.html ``` ## Step-06: Get YAML Output of Pod & Service ### Get YAML Output @@ -205,4 +205,4 @@ kubectl delete pod my-first-pod # Get all Objects in default namespace kubectl get all -``` \ No newline at end of file +```