Execute commands using kubectl exec command inside a container in pods
Commands Used:
kubectl apply -f https://k8s.io/examples/application/s...
kubectl get pod shell-demo
kubectl exec shell-demo -- ls /
kubectl exec shell-demo -- cat /usr/share/nginx/html/index.html
kubectl exec shell-demo -- apt-get install curl
kubectl exec shell-demo -- bash -c "echo Hello shell demo _ /usr/share/nginx/html/index.html"
kubectl exec shell-demo -- cat /usr/share/nginx/html/index.html
kubectl exec shell-demo -- curl http://localhost/
Watch video Kubernetes execute command using exec command online without registration, duration hours minute second in high quality. This video was added by user SMAC Academy 18 March 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,981 once and liked it 6 people.